glxgears showing 36FPS when it should be 60FPS I believe
#1
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.
  Reply
#2
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.
  Reply
#3
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?
  Reply
#4
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/1719...r-glxgears
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)