Skip to content

Move fog and annotation system to store RLE data - #339

Merged
snide merged 9 commits into
mainfrom
rle-masks
Sep 15, 2025
Merged

Move fog and annotation system to store RLE data#339
snide merged 9 commits into
mainfrom
rle-masks

Conversation

@snide

@snide snide commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

In an attempt to speed up the fog and annotation layer, this PR shifts the data saved from uploaded PNG masks, to Run Level Encoded (RLE) data. This means they are saved in the DB directly with a much smaller footprint. Because these text columns are still largish (though much smaller than image blobs) we now use YJS triggers based on timestamps to tell a connected playfield or editor to refresh these "images" and fetch new copies.

This is backwards compatible with the old system. The old PNGs can still be read, but they will migrate over as new fog or annotations are written.

@github-actions

github-actions Bot commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

Fly Preview Deployments - Completed ✅

@snide
snide merged commit 0f3a1c7 into main Sep 15, 2025
12 of 13 checks passed
@snide
snide deleted the rle-masks branch September 15, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant