You are not logged in.

#1 Today 13:39:20

scarlet
Member
Registered: 2024-06-07
Posts: 14

Low render FPS with OpenGL(Nvidia)

I am writing C++ code to render a cube with OpenGL; I support both Windows and linux
When I ran it on windows(with debug mode no optimize), the FPS could reach 140(nearly my screen refresh rate 144Hz).
However, when I ran it on archlinux(without optimize, on the same machine), the FPS could not exceed 60.

My archlinux is up to date now. I am using KDE(x11), and the refresh rate of my screen is set to 144Hz. How can I get higher FPS?

# glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 7115 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 560.35.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 560.35.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 560.35.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Offline

#2 Today 16:03:46

seth
Member
Registered: 2012-09-03
Posts: 56,480

Re: Low render FPS with OpenGL(Nvidia)

xrandr -q
qdbus org.kde.KWin /KWin supportInformation

And try to suspend the compositor, SHIFT+Alt+F12

Sanity check

__GL_SYNC_TO_VBLANK=0 your_cube_demo

Online

Board footer

Powered by FluxBB