Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Layout Backgrounds #774

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Feb 19, 2024

This implements background for the layouts. This is a lot more involved than what it would seem. Part of it is a huge refactoring that changes all layout states to be truly absolute. Previously they only included image changes whenever an image changes. We did this because we didn't want to serialize all the image data on every single frame. The new approach is to have a cache for the images and only serialize the image IDs. The image IDs are SHA-256 hashes, which allow deduplicating the images as well.

@CryZe CryZe added enhancement An improvement for livesplit-core. rendering The issue or pull request is affecting the rendering. feature A new user visible feature for livesplit-core. code quality Affects the quality of the code. labels Feb 19, 2024
@CryZe CryZe linked an issue Feb 19, 2024 that may be closed by this pull request
@CryZe CryZe force-pushed the layout-background branch 2 times, most recently from c1aea54 to 77a1586 Compare February 19, 2024 18:44
This implements background for the layouts. This is a lot more involved
than what it would seem. Part of it is a huge refactoring that changes
all layout states to be truly absolute. Previously they only included
image changes whenever an image changes. We did this because we didn't
want to serialize all the image data on every single frame. The new
approach is to have a cache for the images and only serialize the image
IDs. The image IDs are SHA-256 hashes, which allow deduplicating the
images as well.
@CryZe CryZe force-pushed the layout-background branch from 77a1586 to fe79282 Compare February 19, 2024 18:45
@CryZe CryZe merged commit f957c93 into LiveSplit:master Feb 19, 2024
71 checks passed
@CryZe CryZe deleted the layout-background branch February 19, 2024 19:02
@CryZe CryZe added this to the v0.14 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Affects the quality of the code. enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. rendering The issue or pull request is affecting the rendering.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Background Images
1 participant