You are not logged in.

#1 2014-12-26 01:26:35

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Wine/DMC4 vblank_mode not working as expected.

I was trying to benchmark the performance of some games on wine, mostly Devil May Cry 4 and I happened to stumble upon some weirdness.
I'm running wine on a separate xserver, vblank_mode is set to zero in drirc, and the framerate seems to be unlocked in every other application I tried, so I suppose that's working as intended (glxgears goes over 5000fps) .
When running the game as-is  it gets locked at 60fps even though it clearly shouldn't, vsync in the game is disabled (I don't think it would work anyway).
Exporting vblank_mode=0 gets the same result, this isn't surprising since vblank_mode is already at zero.
The weird thing is, I tried exporting vblank_mode=1, just for the hell of it, and now the framerate in the game is unlocked, hovering around 140fps.
I can't think of a reason why this would happen, but for some reason vblank_mode is having the exact opposite effect on this application than on anything else, it's really rather odd.

I haven't yet figured out if it is happening with everything on wine -I don't think that is the case from some benchmarking I've done in the past- but I will have something to test it with in a while.

If anyone has any ideas as to why this is happening I would appreciate if you share them with me.
Thanks in advance.

I'm using the opensource mesa drivers on an amd card in case that matters.


UPDATE:
I don't know what might have happened earlier but now vblank_mode has no effect whatsoever on the game the framerate is always locked, on twm at least.
However I discovered something new,  if I run the game on kde (plasma5) with desktop effects enabled, the framerate is unlocked, if the effects are disabled the result is the same as with twm, locked at either 60 or 75 depending on resolution, granted now it's a completely different thing, but it still does nothing but to add to my confusion.
On kde's "System Settings" >> "Compositor" I have "Tearing Prevention (vsync)" set to never, I just wonder what is this doing that vblank_mode=0 isn't doing already, again, for every other application vsync is disabled,  compositor enabled or not, I understand that wine can behave a bit strangely sometimes, but this seems completely random, I shouldn't have to turn the compositor on, thus losing some frames, just to get the framerate unlocked...
Is there anything else you have to do to wine to get it to disable vsync that I'm missing ? As is understand it vblank_mode=0 should do the trick.

Last edited by LucetLux (2014-12-26 02:26:59)

Offline

Board footer

Powered by FluxBB