Replies: 3 comments 3 replies
-
Sorry, I get it. Just add |
Beta Was this translation helpful? Give feedback.
-
It doesn't work... CPU usage is still the same and it even causes another problem - Event handling is not instant. Help!🥺 |
Beta Was this translation helpful? Give feedback.
-
The fundamental problem with this application model is that it does something like the following in a loop
The model of repeatedly drawing with some tick rate, is one that came from the original project and there are lots of apps out there that use it, but it's not the only way that you can do things. You could render frames only when things change (keep a dirty flag in your application state, or send a message or event when drawing is necessary). You don't really have to update your UI all that often for it to be effectively "instant" - and most likely don't ever need to do so more than 60 fps. |
Beta Was this translation helpful? Give feedback.
-
I have test the template project and when I moved mouse on the console, the CPU usage boosted (around 20%).
flame graph shows that it is caused by the drawing.
It's an abnormal CPU usage, right? How to solve it?
Beta Was this translation helpful? Give feedback.
All reactions