d2phap / ImageGlass

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

gif playback is slower than it should be #1998

Open Gawidev opened 2 weeks ago

Gawidev commented 2 weeks 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.

Warrior-Elite commented 2 weeks ago

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