PINE64
glxgears showing 36FPS when it should be 60FPS I believe - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: glxgears showing 36FPS when it should be 60FPS I believe (/showthread.php?tid=9178)



glxgears showing 36FPS when it should be 60FPS I believe - hex - 02-15-2020

Hi all,

As the title says, usually the FPS from glxgears should be near display's refresh rate.
Regardless of the OS, all of them show 36FPS, does that mean the screen's refresh rate is that low?

If not, why on earth the frame rate is that low? I set the governor to performance (to rule out CPU bottle neck), but nothing changed.

Thanks.


RE: glxgears showing 36FPS when it should be 60FPS I believe - michaelh - 02-21-2020

I see the same thing.  Running `vblank_mode=0 glxgears -fullscreen` gives 343 FPS so it's not a limitation of the renderer.

The A64 datasheet says that it can do 1920x1200 @ 60 FPS over 4 lane MIPI so it should be possible.


RE: glxgears showing 36FPS when it should be 60FPS I believe - bobbbob - 02-22-2020

I'm getting 36FPS too, but comparing it with glxgears running at 60fps on my laptop's screen it seems just as smooth. Maybe it's being reported wrong somehow? And wouldn't 36 fps cause tearing, or does that not happen on wayland?


RE: glxgears showing 36FPS when it should be 60FPS I believe - bridadan - 02-23-2020

I saw this on my Pinephone as well. Turns out glxgears limits its FPS to the screen's vertical refresh rate by default. If you run the command like this you should see better FPS:
Code:
vblank_mode=0 glxgears


Here are the numbers I saw running Manjaro Alpha 3:


Code:
$ vblank_mode=0 DISPLAY=:0 glxgears ATTENTION: default value of option vblank_mode overridden by environment. 2254 frames in 5.0 seconds = 450.721 FPS 2385 frames in 5.0 seconds = 476.996 FPS 2383 frames in 5.0 seconds = 476.464 FPS $ vblank_mode=0 DISPLAY=:0 glxgears -fullscreen ATTENTION: default value of option vblank_mode overridden by environment. 999 frames in 5.0 seconds = 199.058 FPS 1020 frames in 5.0 seconds = 203.997 FPS


Source: https://stackoverflow.com/questions/17196117/disable-vertical-sync-for-glxgears