[Scummvm-devel] Kyrandia pathfinding issues

Torbjörn Andersson eriktorbjorn at telia.com
Sat Apr 18 05:18:31 CEST 2009


Neil Millstone wrote:

> In KyraEngine_v1::updateInput(), the engine polls the event manager for 
> input.  This event manager appears to collect events while the engine is 
> busy playing an animation.  This means that by the time the animation 
> has finished, there are hundreds of mouse move events in the event 
> buffer.  When the game eventually calls updateInput(), it calls the 
> backend's updateScreen() for every one of these events.  This causes the 
> long pause I was seeing.

That sounds like a bug to me, so I've changed it to call updateScreen()
at most once every time updateInput() is called, and - since it's
triggered by mouse movement - only when the cursor is visible.

I've only made the change on the trunk, so if it breaks anything...
well, there's plenty of time to undo the damage. :-)

Torbjörn Andersson




More information about the Scummvm-devel mailing list