Comments (14)
Check if it has ridiculous amount of FPS. Looks like you have vsync disabled or something.
I just checked the vulkan demo and it uses MAILBOX presentation for no good reason.
from dear-imgui.hs.
from dear-imgui.hs.
@cartazio I actually removed that comment as it's really more about predictable physics. But in general, you don't really want to render as fast as possible. It's more typical to use something like VSync to synchronise your loop to the monitor's refresh rate, or to simply cap FPS artificially.
from dear-imgui.hs.
from dear-imgui.hs.
from dear-imgui.hs.
dirty :: MVar ()
should be enough for SDL.
But dear-imgui
, being an immediate mode gui, requires a constant rate of ticks/updates since it handles its input in the moment.
Maybe I'm wrong on this. Try setting your delay to 10 seconds instead and see if UI still works. If it is, then you can employ that flag var.
from dear-imgui.hs.
from dear-imgui.hs.
so definitely doesn't update the gui until the next draw call, so 100ms is probably the slowest thats tolerable
from dear-imgui.hs.
You can make window events flip a "dirty" flag that would trigger a new frame, maybe with a small debounce to prevent burning CPU on every pixel a cursor had traveled.
from dear-imgui.hs.
from dear-imgui.hs.
A quick option is to just grab the display mode and convert that to a thread delay.
from dear-imgui.hs.
Anyway... I don't think dear-imgui
can do something here as frame rate is governed by a presentation/windowing framework, picked and configured by user.
from dear-imgui.hs.
@cartazio Did you find a good software pattern?
from dear-imgui.hs.
from dear-imgui.hs.
Related Issues (20)
- More popup bindings HOT 2
- Separate valueRef and rangeRef for sliderScalar
- Move to cimgui HOT 4
- Splitting rendering new frames for FRP - Future yampa example for imgui HOT 3
- Update to imgui 1.88 HOT 1
- Expose flags to widgets HOT 5
- Compile failure on MacOS w/ GLFW HOT 1
- Running the glfw example in ghci shows a blank window HOT 2
- `image` example uses OpenGL3 but cabal file specified OpenGL2 HOT 1
- Matrix room appears to be private HOT 2
- Wrong flags type for *TabItem
- Generator can't parse newer versions
- [vulkan] Add dynamic rendering option
- [vulkan] Add ColorAttachmentFormat option
- Marked as broken on nixpkgs HOT 7
- strange error when trying to do Compatibility 4 1 profile vs Core 4 1 profile HOT 2
- [SDL] Add ImGui functions that use the SDL2 Renderer HOT 2
- Failed to compile shader HOT 2
- Build 'Hello World' example on Windows with Stack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dear-imgui.hs.