Coder Social home page Coder Social logo

Input latency about imgui-godot HOT 4 CLOSED

107zxz avatar 107zxz commented on June 15, 2024
Input latency

from imgui-godot.

Comments (4)

pkdawson avatar pkdawson commented on June 15, 2024

For the most part, I think I'm doing the best I can with what Godot gives me. For each frame, input events are processed, and then the ImGui frame is rendered and displayed, there's no additional latency there.

That lag looks much worse than anything I can reproduce at 60fps on Windows, but I'll check it out on macOS later. There is one thing I can do to slightly improve hardware cursor tracking.

from imgui-godot.

pkdawson avatar pkdawson commented on June 15, 2024

If you create a new project without imgui-godot and add an embedded subwindow (the Window node), you should notice that it lags behind the cursor in a very similar way at 60fps. So I think this is just an issue with how Godot's macOS rendering works, which is beyond my expertise.

My idea for directly sampling the cursor position didn't make a noticeable difference. I'll probably implement it anyway, because it is at least theoretically better.

from imgui-godot.

pkdawson avatar pkdawson commented on June 15, 2024

v3.5.9 implements the change I mentioned, which in my testing can tighten up the mouse position by a pixel or two, but it's not really a noticeable improvement. I don't think there's anything more I can do.

from imgui-godot.

107zxz avatar 107zxz commented on June 15, 2024

The issue definitely seems to be on Godot's side. Thanks for looking into it

from imgui-godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.