Spencer C. Imbleau
Spencer C. Imbleau
Going to do my best to elaborate here, but I think we may have similar needs. I'm making an MMO so fine-tuned control is important. A few things: - I...
I think the general approach should be: Use the Window winit events to listen for when the window is tabbed-off / minimized / etc. Keep an attention state (active/inactive). (eg)...
I'm also torn whether or not that should be in bevy proper, not just a plugin. As it currently stands, the winit event for WindowUnfocused just straight up doesn't work,...
I've made a mention in bevy: https://github.com/bevyengine/bevy/issues/13486
I just thought of something else... Let's imagine you have a system that is supposed to be an atomic counter. Every system, the counter += 1. If we do this...
Note these `window.unwrap()...` calls will panic in a headless environment. Primarily `wasm-pack test --node` or using headless browsers. We should change this to ```rust if window().and_then(w| w.document()).is_some_and(|d| d.hidden()) { ......
Furthermore, simply typing this in the console also fails: ``` >> new WebTransport('https://localhost:5000') ``` ``` WebTransport { ready: Promise { "pending" }, reliability: "pending", congestionControl: "default", closed: Promise { "pending"...
More troubleshooting: FF 125 (Stable) also does not work.
Also doesn't work on FF 127 (Nightly)
> Looks like a cert issue What gives you that information from the stack trace? I might not be seeing it. Also, it works on Chrome, as mentioned. So I'm...