Skip to content

Keep current picture sprite shown while the new one is loading - #3457

Merged
Ghabry merged 1 commit into
EasyRPG:masterfrom
tsdko:show-picture-no-flicker
Oct 12, 2025
Merged

Keep current picture sprite shown while the new one is loading#3457
Ghabry merged 1 commit into
EasyRPG:masterfrom
tsdko:show-picture-no-flicker

Conversation

@tsdko

@tsdko tsdko commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

Prevents flickering on multi-picture sequences loaded from a slow source such as a remote server.

Some examples (Yume 2kki 0.127i):

  • background animation in MAP3116 (Rural Starflower Field: Entrance)
  • entry animation in MAP0259 (Square-Square World) → (26, 48) blue fish → MAP3117 (Goldfish Pond)
  • entry animation in MAP2997 (Photographic Field) → (196, 13) door → MAP2998 (Dining Table)

I've only managed to reproduce the flickering on emscripten.

Sprite hiding appears to have been introduced in 87cad88 (in order to avoid showing stale data from erased pictures?), but 32e9ad4 made unused pictures unload their sprites so I'm not sure why this condition has been kept.

Prevents flickering on multi-picture sequences loaded from a slow
source such as a remote server.

Some examples (Yume 2kki 0.127i):
 - entry animation in MAP0259 (Square-Square World) -> MAP3117 (Goldfish Pond)
 - entry animation in MAP2997 (Photographic Field) -> MAP2998 (Dining Table)
 - background animation in MAP3116 (Rural Starflower Field: Entrance)
@ghost
ghost requested a review from Ghabry July 31, 2025 14:07
@ghost ghost added Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc. Emscripten WebAssembly/JavaScript port for web browsers Pictures labels Jul 31, 2025
@Ghabry Ghabry added this to the 0.8.2 milestone Oct 12, 2025
@Ghabry

Ghabry commented Oct 12, 2025

Copy link
Copy Markdown
Member

Yeah this will only affect the web player because its the only one doing this "async" loading.

Not sure which approach is looking better (unload and flicker or keep old) so will merge this and wait for feedback xD

@Ghabry
Ghabry merged commit fe1cfac into EasyRPG:master Oct 12, 2025
18 checks passed
@tsdko
tsdko deleted the show-picture-no-flicker branch October 25, 2025 21:08
sevenc-nanashi pushed a commit to sevenc-nanashi/easyrpg-player that referenced this pull request May 31, 2026
Keep current picture sprite shown while the new one is loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Emscripten WebAssembly/JavaScript port for web browsers Performance Related to improvements on memory, less CPU or disk usage, battery savings, etc. Pictures

Development

Successfully merging this pull request may close these issues.

3 participants