JHubi1 / ollama-app

A modern and easy-to-use client for Ollama
Apache License 2.0
609 stars 44 forks source link

App running at 60Hz #11

Closed adarsh1001 closed 5 months ago

adarsh1001 commented 5 months ago

Have faced this issue with some other FOSS Flutter apps as well that they don't respect the refresh rate set by the device (in my case, it is forced to 120Hz).

Example issue and fix: https://github.com/emavgl/oinkoin/issues/16#issuecomment-1823492267

Device: Nothing Phone (2) Android: 14

JHubi1 commented 5 months ago

Are you sure the issue is connected to the app itself? The app is running on a constant 90 fps (on my 90 Hz phone, Google Pixel on Android 14)

adarsh1001 commented 5 months ago

Yeah currently this is the only app I have that isn't running at 120 for me. For the Oinkoin issue as well, it was running at 120 in Samsung but not Nothing. But one thing I've noticed is that it's always Flutter apps that behave this way.

JHubi1 commented 5 months ago

Could you try if this build solves the issue?

ollama.zip

adarsh1001 commented 5 months ago

Working fine with the build at 120Hz now 😄

JHubi1 commented 5 months ago

Thank you, it'll get added in the next release

adarsh1001 commented 5 months ago

Looking at the package, I guess the issue was because my device has an LTPO panel which varies refresh rate from 1-120Hz?