Opened 17 months ago
Closed 16 months ago
#13066 closed defect (fixed)
TWINE: Game is slow when VSYNC is ON
Reported by: | vanfanel | Owned by: | mgerhardy |
---|---|---|---|
Priority: | normal | Component: | Engine: TwinE |
Version: | Keywords: | #twine #vsync #speed | |
Cc: | vanfanel | Game: | Little Big Adventure |
Description
Hi,
With the VSYNC option ON, the TWINE engine runs slowly because the game is doing internal video waits AND there's the VSYNC wait.
So, with VSYNC ON, the internal video refresh waits of the TWINE engine should be disabled, so game syncs with the VSYNC frequency instead.
Thanks!
Change History (5)
comment:1 by , 17 months ago
Summary: | [TWNE] Game is slow when VSYNC is ON → TWINE: Game is slow when VSYNC is ON |
---|
comment:2 by , 16 months ago
comment:3 by , 16 months ago
There is also this issue: https://bugs.scummvm.org/ticket/12843 - maybe it's more the renderer, and not vsync?
comment:4 by , 16 months ago
The issue should be fixed in master and branch-2-5-0. I've compared the game speed with a few youtube videos - I'm still not 100% sure about the speed. But the code implies that the game was running the main loop at 66hz - with a weird sleep of 2ms at each loop. I've tried to do the same and hope this feels better now.
comment:5 by , 16 months ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Weird - vsync should block the g_system->updateScreen() call. And in that case the delayMillis(x) call should take that into account.