Vsync always on?

2 replies [Last post]
cutepie
User offline. Last seen 3 weeks 3 days ago. Offline
Joined: 2010-10-04
Posts: 5

Is there a way to disable vsync? it's causing me a bit of issues in combination with Free Sync.

nemo
nemo's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 2009-01-28
Posts: 1836

There's no directly exposed setting since the "reduce quality" turns on a bunch of different flags.
However https://hg.hedgewars.org/hedgewars/file/tip/QTfrontend/gameuiconfig.cpp#l422 which is turned on for the bottom 2 slider values could probably be set by forcing SLQuality in your config to 0x00000800

I haven't tested that.

Rebuilding frontend would be an option too, to allow only turning that on for one of the slider levels, or rebuilding engine to force it on.

Depending on your setup, something like
export vblank_mode=0
hedgewars

Might work too

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

nemo
nemo's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 2009-01-28
Posts: 1836

Update. Looks like the slider flag for vsync doesn't do anything since the SDL2 migration...
https://hg.hedgewars.org/hedgewars/diff/7a7611adf715/hedgewars/uStore.pas#l1.38

SDL2 defaults to vsync.
So that means doing it outside the app.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Copyright © 2004-2021 Hedgewars Project. All rights reserved. [ contact ]