thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
712 stars 62 forks source link

Thunder sets the refresh rate to 60hz #1342

Open TGRush opened 2 weeks ago

TGRush commented 2 weeks ago

Bug Description

When entering the app, my phone goes down to 60hz despite the fact I've set the minimum to 90hz. This is evident when looking at the refresh rate indicator from the developer options.

Expected Behaviour

The app shouldn't change my refresh rate.

Steps to Reproduce

  1. Set refresh rate to 90hz or above
  2. Open the app
  3. Observe the issue

Additional Context

No response

App Version

0.3.0 F-Droid

Device

Poco F3, EU

OS

Android 13, LineageOS 20, lineage_alioth-userdebug 13 TQ3A.230901.001 eng.root.20240310.120731 dev-keys

hjiangsu commented 1 week ago

Hey, sorry for the late reply!

When entering the app, my phone goes down to 60hz despite the fact I've set the minimum to 90hz.

When this happens, does it only set it to 60Hz when you have Thunder open? Or does set it system wide even after you close Thunder? (i.e., system is originally at 90Hz, open Thunder which brings it down to 60Hz, close Thunder and system is still set to 60Hz)

If it only sets the refresh rate when you're in Thunder, then that might be an issue with the app determining the proper refresh rate to use. It might be a bit tricky to figure out the system's refresh rate, and force Thunder to use that.

TGRush commented 3 days ago

Hey, sorry for the late reply!

When entering the app, my phone goes down to 60hz despite the fact I've set the minimum to 90hz.

When this happens, does it only set it to 60Hz when you have Thunder open? Or does set it system wide even after you close Thunder? (i.e., system is originally at 90Hz, open Thunder which brings it down to 60Hz, close Thunder and system is still set to 60Hz)

If it only sets the refresh rate when you're in Thunder, then that might be an issue with the app determining the proper refresh rate to use. It might be a bit tricky to figure out the system's refresh rate, and force Thunder to use that.

It has 60hz only when the app is open, it returns to 90/120hz when the app is closed.