Game lags when loading large/long GIF images
Treeways opened this issue ยท 2 comments
When a chunk is initially loaded, the game freezes when loading a large image with long playback. The image in question here is a 43.1MB GIF, and runs for several minutes (probably more than 5-10 minutes).
Reproduction steps:
- Make a Creative Picture Frame with a large GIF image (large file size, very long playback time).
- Move away about 500-800 blocks from the frame.
- Move towards the frame to reload it, and witness a 2 second client-side lag spike on the way to the room.
Here's a Spark profile: https://spark.lucko.me/XmHdSabOPO
this has been addressed on watermedia 2.0.54
now the gif decoding is done offthread