pub fn try_update_window_observation(
window_backend: impl Into<String>,
observed_scale_factor: f64,
) -> Result<bool, BenchWriteError>Expand description
Publishes the effective winit backend and DPR observed from a live window.
Hosts should call this after native window creation, using the backend
selected by the event loop and Window::scale_factor() (or provider-neutral
equivalents). This keeps requested benchmark configuration separate from
the environment that actually rendered the run.
§Errors
Non-finite or nonpositive observed scale factors are rejected by an active session; global queue/lifecycle failures are also propagated.
§Examples
let _accepted = ailloli_ui_bench::try_update_window_observation("wayland", 2.0)?;