#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 mgerhardy, 11 months ago

Summary: [TWNE] Game is slow when VSYNC is ONTWINE: Game is slow when VSYNC is ON

comment:2 by mgerhardy, 11 months ago

Weird - vsync should block the g_system->updateScreen() call. And in that case the delayMillis(x) call should take that into account.

comment:3 by mgerhardy, 11 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 mgerhardy, 10 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 mgerhardy, 10 months ago

Owner: set to mgerhardy
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.