bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.79k stars 3.54k forks source link

Call redraw while resizing windows #15915

Open alice-i-cecile opened 4 days ago

alice-i-cecile commented 4 days ago

Would it be possible to call redraw while we're resizing, so window gets updated immediately, rather than just stretching until we're done?

Originally posted by @MiniaczQ in https://github.com/bevyengine/bevy/pull/15814#pullrequestreview-2364967936

BenjaminBrienen commented 4 days ago

I think this should be configurable behavior, and I'd be fine with either being the default.

mrec commented 3 days ago

I remember @raphlinus posting about this being a bit hairy on Windows some years back, though things may have improved since then.

Ref: https://github.com/rust-windowing/winit/issues/786

FWIW his issues were with doing it perfectly smoothly though, not with doing it at all.

alice-i-cecile commented 3 days ago

Yeah, especially as a configurable behavior I'm fine with a bit of jank vs not doing it at all. This is much less important for Bevy than for Raph's focus on traditional desktop apps.