Xonotic Forums
[SOLVED] vsync and KDE - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] vsync and KDE (/showthread.php?tid=3261)



vsync and KDE - Halogene - 07-12-2012

I noticed a strange behavior when using KDE and Xonotic.

Whenever I started Xonotic under KDE, it felt like very choppy and not smooth at all, even though the fps counter said 60 constantly (I even tried with lowest effects settings). When I start Xonotic under LXDE/Openbox, I get very smooth display at 60 fps.

This made me curious what caused this. First thing I tried to do is to let Xonotic run at higher fps under KDE.

I disabled vsync. Still 60 fps.

I checked for cl_maxfps, it was 0. I set it to 200. Still 60 fps.

I checked the netfps settings and set them up as high as possible, but that was in vain too, as expected.

Then I thought, heck, maybe vsync needs a kick in the butt. I enabled vsync via console, and disabled it via console again. And WOOSH there were the fps at 500 or so. WTF! Display runs smooth! Now I enable vsync, 60 fps again, AND smooth display.

I scratched my head, wondered, shrugged, exited Xonotic. Restarted Xonotic. 60 fps, crappy sluggish choppy display again. WHAAAT, I disabled vsync, enabled vsync, there you go.

This seems to affect my Xonotic installation only when I run it from within KDE. I searched the config.cfg and autoexec.cfg for "60" and "vsync", but not relevant entries found. Any ideas as to what may cause this strange behavior? Not that other KDE users think Xonotic is ugly because it looks choppy even though it displays 500 fps...


RE: vsync and KDE - Cyber Killer - 07-12-2012

Disable kwin effects before running Xonotic (alt+shift+f12) and everything will be smooth as it should.


RE: vsync and KDE - Halogene - 07-12-2012

Interesting thing is that whenever I change graphics settings and click "Apply immediately", I'm back to 60 fps even though vsync says it's disabled, I only get more fps when I enable it via console and disable it again.


RE: vsync and KDE - Mr. Bougo - 07-12-2012

Applying settings restarts the renderer, so that doesn't seem too weird to me.


RE: vsync and KDE - Cyber Killer - 07-13-2012

Halogene - if you didn't disable kde effects before running the game and you have vsync enabled in the desktop effect settings it might have an effect on Xonotic's renderer.


RE: vsync and KDE - adem - 07-13-2012

this works for me on Kubuntu:

- sudo kate /etc/environment

- add line to the file:
vblank_mode=0

but dunno why it doesn't work in the big benchmark =(


RE: vsync and KDE - edh - 07-13-2012

You can get Xonotic to run through a Kwin rule to completely disable compositing but it is more convoluted than you might expect. There are some alternatives too. Pressing Alt+Shift+F12 isn't really an acceptable fix. I covered this a bit before after some issues I had originally:
http://forums.xonotic.org/showthread.php?tid=2685


RE: vsync and KDE - Mr. Bougo - 07-13-2012

edh, contact me if you want this thread you linked to be stickied.


RE: vsync and KDE - edh - 07-13-2012

Putting things like that in a Wiki might end up being better in future! Maybe such a thing could be wangled at some point as there will be a lot of support and howtos that would be best put in a Wiki rather than out of date, very long winded, dead forum topics down the line. Any chance the official wiki could have sections for this sort of stuff?


RE: vsync and KDE - Mr. Bougo - 07-13-2012

That's up to you, really. You can get write access on the wiki, just get an account there and somebody can set the flags on your account.


RE: vsync and KDE - Halogene - 07-18-2012

(07-12-2012, 08:23 AM)Mr. Bougo Wrote: Applying settings restarts the renderer, so that doesn't seem too weird to me.

Well, what seems weird to me is that I get 60 fps then even though the output of vsync in console says it is switched off.