Desktop Ruffle delay when tracking mouse coordinates #19211
Labels
A-rendering
Area: Rendering & Graphics
bug
Something isn't working
render-wgpu
Issues relating to the wgpu renderer
windows
Windows-specific issues
Describe the bug
There seems to be a significant delay in Ruffle when tracking the mouse coordinates, that doesn't happen in Flashplayer.
This seems to only happen in Desktop Ruffle, and not in the browser version.
Here's an example of my code:
`stage.addEventListener(Event.ENTER_FRAME, onFrame);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
//mouse1 and mouse2 are MovieClips imitating a cursor
function onFrame(e:*){
mouse1.x = mouseX;
mouse1.y = mouseY;
}
function onMouseMove(e:*){
mouse2.x = mouseX;
mouse2.y = mouseY;
}`
In Flashplayer my new cursor "mouse1" seems to track the system mouse perfectly, maybe 1 frame behind.
In Desktop Ruffle, it feels like 5 or 6 frames behind the system mouse, and ENTER_FRAME and MOUSE_MOVE give slightly different results.
This seems to effect dragging behaviour also.
Here's a .gif of the issue:
@kjarosh
Expected behavior
The browser version of Ruffle seems to work correctly, the delay only happens on Desktop.
Content Location
Code in the description.
Affected platform
Desktop app
Operating system
Windows 10
Browser
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: