shell icon indicating copy to clipboard operation
shell copied to clipboard

[BUG] Choppy animations on NVIDIA GPU

Open ashuuya opened this issue 1 year ago • 14 comments

is there hardware acceleration for bar, menu animations with nvidia gpu? i think mine are like stuttering a bit or just 60 fps limited, despite the 165hz monitor settings in hyprland.conf (workspace switch and apps are smooth and i see the 165 fps working)

ashuuya avatar Jun 24 '25 06:06 ashuuya

same

MixaDoDs avatar Jun 30 '25 10:06 MixaDoDs

I've got the same issue and i've got an Nvidia GPU

maxoverthere avatar Jul 08 '25 16:07 maxoverthere

+1, exact same here on nvidia. Is this a quickshell bug/configuration issue?

doomperfect avatar Jul 21 '25 15:07 doomperfect

Oh, if it helps, I just noticed - the bar on the right side (brightness/audio) seems to be running at full refresh rate/fps, at least for me. The other pop-up widgets (the window popup view, wifi/bt control, dashboard from the top, app launcher) are the ones lagging.

I guess this must mean the brightness/audio control bar is somehow rendered/instantiated differently from the other pop-up widgets, but I don't really know enough about quickshell to figure it out :(

doomperfect avatar Jul 22 '25 13:07 doomperfect

Oh, if it helps, I just noticed - the bar on the right side (brightness/audio) seems to be running at full refresh rate/fps, at least for me. The other pop-up widgets (the window popup view, wifi/bt control, dashboard from the top, app launcher) are the ones lagging.

I guess this must mean the brightness/audio control bar is somehow rendered/instantiated differently from the other pop-up widgets, but I don't really know enough about quickshell to figure it out :(

The osd is made in the exact same way as the rest of the panels, so idk what could be causing that

soramanew avatar Jul 22 '25 13:07 soramanew

Same issue here :/

SocketByte avatar Jul 24 '25 19:07 SocketByte

Same issue +1

ShuwiOwO avatar Jul 25 '25 17:07 ShuwiOwO

I think this helped me: QSG_RENDER_LOOP=threaded qs -c caelestia but maybe it's just self-suggestion after a couple of hours of troubleshooting. Check it out, maybe it'll help you too.

MidTano avatar Jul 27 '25 19:07 MidTano

@MidTano Didn't help unfortunately. I'm running RTX 5070 Ti on nvidia-open-dkms, maybe that has something to do with it.

SocketByte avatar Jul 27 '25 21:07 SocketByte

@MidTano Got it working with your env on RTX 5080 with nvidia-open-dkms

mikigal avatar Jul 27 '25 21:07 mikigal

@SocketByte u edit .conf or just run ?

MidTano avatar Jul 27 '25 21:07 MidTano

@MidTano Actually I've made it work even without this env param, maybe it will help someone: If you use multiple monitors with different refresh rates (oh man, I'm so sorry for you) then the issue is that SOMEHOW nvidia drivers like to pick the wrong monitor to enforce global refresh rates in apps. Why? I have no earthly idea. I assume there IS a way to force nvidia to look for the correct monitor, but this also works:

#/usr/bin/env bash
hyprctl keyword monitor "HDMI-A-1, disable"
sleep 3
hyprctl keyword monitor "HDMI-A-1, 1920x1080@60, 2560x0, 1"

(You should obviously tweak the bash script for your monitor.) This runs on boot with exec-once on hyprland. Works like a charm ever since. Somehow this forces Nvidia drivers (since there's only one available monitor at the time) to switch contexts permanently. Yes, it's a dirty hack, don't look at me - look at f*cking nvidia that still cannot get it's drivers to work correctly.

SocketByte avatar Jul 27 '25 22:07 SocketByte

@MidTano ur a fkin genius, adding env (put it in hyprland envs) worked for me also! bless

doomperfect avatar Jul 28 '25 20:07 doomperfect

@SocketByte how do you make this script work? for it to turn off the monitor with the higher refresh rate or the monitors without?

jasamvuk avatar Oct 09 '25 08:10 jasamvuk