You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using WinitSettings::desktop_app() in my bevy app (so the window is only updated when a winit event is received or a RequestRedraw event is sent manually), but it seems that RequestRedraw events aren't sent by bevy_egui when the UI needs to be updated. This results in behaviour like this:
Screen.Recording.2024-01-01.at.23.27.09.mov
(although I click the collapsing header, it only collapses when I wiggle the mouse because that's when the next Winit event is received).
I tried to add this bevy system to the PostUpdate schedule to fix the problem:
fnredraw_window(mutcontexts:EguiContexts,mutev_request_redraw:EventWriter<RequestRedraw>){let ctx = contexts.ctx_mut();// redraw the window if egui wants the window redrawnif ctx.input(|i| i.wants_repaint()){
ev_request_redraw.send(RequestRedraw);}}
And it did partially fix it, as you can see in this screen recording:
Screen.Recording.2024-01-01.at.23.29.34.mov
But the window is still not being redrawn enough times.
Do you have any suggestions on getting this to work manually, or is there a chance this feature could be added to bevy_egui?
Thanks
The text was updated successfully, but these errors were encountered:
I'm using
WinitSettings::desktop_app()
in my bevy app (so the window is only updated when a winit event is received or aRequestRedraw
event is sent manually), but it seems thatRequestRedraw
events aren't sent bybevy_egui
when the UI needs to be updated. This results in behaviour like this:Screen.Recording.2024-01-01.at.23.27.09.mov
(although I click the collapsing header, it only collapses when I wiggle the mouse because that's when the next Winit event is received).
I tried to add this bevy system to the
PostUpdate
schedule to fix the problem:And it did partially fix it, as you can see in this screen recording:
Screen.Recording.2024-01-01.at.23.29.34.mov
But the window is still not being redrawn enough times.
Do you have any suggestions on getting this to work manually, or is there a chance this feature could be added to
bevy_egui
?Thanks
The text was updated successfully, but these errors were encountered: