Skip to content

Setting App.fps with a high value results in delayed events. #222

@cunev

Description

@cunev
    this.window = new Window(300, 300);
    this.window.title = "Canvas Window";
    this.window.on("draw", (e) => {
      // draw anything on mouse.position will be with delayed
    });
    App.fps = 300;
    App.eventLoop = "node";
    App.launch();


    this.window.addListener("mousemove", (e) => {
      Mouse.position.x = e.x;
      Mouse.position.y = e.y;
    });

I'm running on gui/event-loops branch on Windows 11.
Seems like there might be some issue related to emmited mouse position from mousemove when the App.fps set to a high value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions