DWM can't go beyond 60FPS

When running UFO test on Dynamic Window Manager it runs at 60 frames per second. Both in chromium and firefox. I have a 240Hz display. I use NVIDIA proprietary drivers.

After setting refresh rate to 240Hz with xrandr, the cursor immediately becomes more fluent.

I also changed line 1116 of dwm.c:

if ((ev.xmotion.time - lasttime) <= (1000 / 60))


if ((ev.xmotion.time - lasttime) <= (1000 / 240))

It seems like it made moving windows around smoother. The UFO test still runs at 60FPS.

I tried greping values like 60 or 16, but it seems the above was the only one.

I installed KDE on this system and immediately got 240FPS on the UFO test.

Could you please help me debug this issue?

What are your xorg settings? The time shown there is the time between motion notify events to move/resize windows, this is done for performance reasons and won’t limit your frame rate. dwm doesn’t limit the refresh rates of your monitor or the X server, so if you do

xrandr DisplayPort-0 -auto -rate 240

it should do the trick, just replace the display name with your own.

This can be made to run at login with shell scripts or an xorg config file.

1 Like

Thank you for your reply. I tired this, but it did not resolve the issue. In chromium if I go to chrome://gpu it says that my refresh rate is 239Hz, but UFO test (or any other web test) won’t go above 60.

What is the output from xrandr please

You have any compositor (for example picom or compton) running in your dwm session?