Vsync always on?

2 replies [Last post]
cutepie
User offline. Last seen 3 years 5 weeks 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 3 weeks 1 day ago. Offline
Joined: 2009-01-28
Posts: 1861

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 3 weeks 1 day ago. Offline
Joined: 2009-01-28
Posts: 1861

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

User login

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