d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.81k stars 500 forks source link

gif playback is slower than it should be #1998

Open Gawidev opened 2 months ago

Gawidev commented 2 months ago

System information

To Reproduce

Steps to reproduce the behavior:

  1. Open any gif file that has a fast playback speed (around <100ms per frame)

Actual behavior

Expected behavior

The gif should play at the speeds specified in the file

Screenshots / Video / Sample image file

https://github.com/user-attachments/assets/474eaf69-36f6-4b76-b878-ab259a4fd596

This video displays ImageGlass side by side with Aseprite both playing the same gif file (with 20ms/frame timing). I start the playback in aseprite slightly too early, but regardless it takes very few loops for the playback in aseprite to overtake the one in ImageGlass entirely. Here is the file in question 3000000

Additional context

This effect is very hard to notice with gif files that have longer frames. Playback also seems to be even slower than usual when the file has a higher resolution.


Edit: I've recently found that this issue also applies to .webp animated pictures. Haven't checked but this may potentially also apply to other animated image formats.

Warrior-Elite commented 2 months ago

Agreed. ImageGlass 8 and below worked perfectly fine. Almost all GIFs in IG 9.0+ play at around 60-80% speed.

AmeJunn commented 1 month ago

Yeah I just tested and can confirm that gifs are playing slower

novaexe commented 2 weeks ago

yep same here