question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the right why to limit max fps on Android?

See original GitHub issue

Issue details

What is the right why to limit max fps on Android?

Reproduction steps/code

I want to limit max fps on Android, if I Thread.sleep(ms) in render() , fps is unstable, what is the right why?

Version of libGDX and/or relevant dependencies

latest

Please select the affected platforms

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • macOS

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
gtf35commented, Dec 9, 2021

Thanks a lot ! @obigu

I want people who don’t pay to use low fps, such as 45, 30

Only support Android 11 doesn’t looks great

If use Thread.sleep(), Gdx.graphics.framesPerSecond will keep jumping(The value keeps changing)

0reactions
obigucommented, Dec 9, 2021

I’ve added a feature request label to keep it open until we add the mechanism to provide the preferred refresh rate on Android.

We can continue the conversation about why you see this refresh rate on your tests on Discord.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frame rate - Android Developers
For video, the frame rate is fixed to that of the source video, and pulldown will be required to show the video content....
Read more >
How to limit FPS in games : r/AndroidGaming - Reddit
I have a Xiaomi Mi 10T, which can run at 144 Hz, however not all games can handle that. For example Rayman Adventures...
Read more >
How To Limit FPS In Games – Best FPS Limiters To Use
Limiting the FPS can be the perfect solution for you to get the best gaming experience. Here are the best FPS limiters to...
Read more >
How to limit fps on android - jMonkeyEngine Hub
Maybe someone knows a bit more about this, however there is a line at the top that was commented out that set the...
Read more >
Limit The FPS Of The Device - XDA Forums
So I was wondering if there's any possible way to limit the maximum frames rendered on this device. By that I mean limiting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found