Allow configuring the present mode in wgpu integration #8876
Replies: 1 comment
-
That's a good point you're touching there. Right now the present mode is I've been wondering if it makes sense to add these to Another way would be to make this overall more run-time configurable. The rendering notifier is just an pub trait RenderingNotifier {
/// Called to notify that rendering has reached a certain state.
fn notify(&mut self, state: RenderingState, graphics_api: &GraphicsAPI);
} (as it happens, it's implemented for I've been thinking that perhaps that trait should become public and extended: It could have a surface configuration hook, for example:
I've been eyeing a similar mechanism to make background rendering configurable (and that way open the door to exposing the surface texture). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m experimenting with using Slint for a game development project. One of Rust’s biggest weaknesses in game dev right now is UI capabilities. Naturally, most games need the present mode to be configurable: some users want VSync for smoother visuals, others want the lowest possible input latency.
Slint is a complex project, so I’m not entirely sure if there would be any issues with letting the user configure the present mode freely.
There are two main cases to consider:
It’s also worth distinguishing between setting a preferred present mode and forcing a specific one. One possible approach: allow specifying a preferred mode at setup, then provide a way to query the supported present modes later and let the user explicitly choose one at runtime if needed.
I haven't found any issue on this subject, only "V-Sync broken with renderer-femtovg-wgpu #8693" where tronical says
Beta Was this translation helpful? Give feedback.
All reactions