Giter VIP home page Giter VIP logo

Comments (8)

opsidjflksdf avatar opsidjflksdf commented on June 29, 2024

I've just built myself a web version, with a newer imgui and this one doesn't have the lag issue. There probably was some work done on combo-boxes and the demos that are out there as bit out of date. I should be all good. Thank you for the hard work that goes into DearImgui!

from imgui.

ocornut avatar ocornut commented on June 29, 2024

I don't see any lag in the aforementioned link, and nothing related to this has changed recently.
Perhaps you are referring to the fact that button press validation requires a mouse-down-then-release event, instead of just a mouse-down? That's how a majority of actions works. It might make sense to change the behavior for combo boxes tho.

from imgui.

cfillion avatar cfillion commented on June 29, 2024

I notice there is a slight but noticeable lag between the click on a combobox/drop down arrow and when it opens up. It's not huge,

Seems related to the "Enable idling" checkbox at the bottom right. Combo popups open immediately with that disabled. That extra idling feature is not part of dear imgui, it comes from this repo.

I don't get any delay opening combos in the second link here (Firefox).

from imgui.

ocornut avatar ocornut commented on June 29, 2024

Right so it would be a bug or feedback to submit to @pthom, not here.

from imgui.

opsidjflksdf avatar opsidjflksdf commented on June 29, 2024

I revisited and I'm confirming that I have the same experience as @cfillion reported (checking the Idle flag introduces the combo opening lag; unchecking it gets rid of it).
Thanks! I'll file a ticket with Hello_Imgui.

from imgui.

pthom avatar pthom commented on June 29, 2024

Bonjour,

Since Omar pinged me, I could see this issue.

The commit add timeActiveAfterLastEvent should solve the issue since it waits 3 seconds before idling after the last user event.

The manual was updated also, and should not exhibit this lag anymore.

And @ocornut , for info, I just updated the manual to ImGui v1.90.5

from imgui.

ocornut avatar ocornut commented on June 29, 2024

I don’t believe you need such a long 3 seconds delay before idling, by looking at the issue description it looks like mouse release should simply queue 3-4 frames of update?

from imgui.

pthom avatar pthom commented on June 29, 2024

@ocornut : You are right.

But adding this delay makes the application feel more responsive to final users, especially really If they just triggered an action that will for example display a spinner or whatever.

from imgui.

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.