sk22 / megalodon

Pink modification of the official Mastodon for Android app
https://sk22.github.io/megalodon
GNU General Public License v3.0
550 stars 33 forks source link

adaptive refresh rate lowers even if gif is in view #962

Open deanveloper opened 8 months ago

deanveloper commented 8 months ago

Describe the bug

When using a device with an adaptive refresh rate (I use Pixel 7 Pro), gif profile pictures do not tell the device to use a higher refresh rate, causing them to stutter unless scrolling.

To reproduce

Steps to reproduce the behavior: Prereq: use device with adaptive refresh rate

  1. Go to home timeline
  2. Look at gif pfp
  3. do not scroll
  4. gif freezes/stutters

Does this happen in the official app? Mastodon: No. Megalodon: yes

Does this issue also occur with the respective upstream release?

I used the current version of Mastodon from play store, the bug does not occur there.

In case it does, please consider filing an upstream bug report instead. If this bug is seriously impacting your usage or you think I might want to try to fix it for Megalodon, feel free to still create this issue!

Screenshots and screen recordings

If applicable, add screenshots (and screen recordings, if possible) to help explain your problem.

(apologies for the short video, github only allows 10MB uploads and it's hard to get a screen recording in that)

!Screen Recording

Version

Megalodon version: 2.1.6+fork.110

deanveloper commented 8 months ago

Should specify that I'm not 100% certain that adaptive refresh rate is the culprit here, it just vibes like that kind of issue

KibSquib48 commented 8 months ago

I have the same issue also on a 7 Pro, enabling 'Force Peak Refresh Rate' in the developer options fixes it (but obviously I can't keep it enabled all the time)

it also affects all the ripple animations