How to update the window only when input received #8719
Answered
by
alice-i-cecile
ThomasAlban
asked this question in
Q&A
-
Is it possible to make Bevy only update the window when inputs such as moving the mouse or clicking are received? I'm making a 3d editor using Bevy and it is currently consuming lots of CPU even when running in the background. If not, what other steps can I take to reduce CPU consumption? |
Beta Was this translation helpful? Give feedback.
Answered by
alice-i-cecile
May 30, 2023
Replies: 1 comment 2 replies
-
You want I also recommend pairing this with |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alice-i-cecile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want
UpdateMode::ReactiveLowPower
. This was added by the Foresight team, who are making a CAD application in Bevy so their use case is very similar.I also recommend pairing this with
bevy_framepace
to smooth out input latency :)