- #558: a backend can be alive yet wedged (zero presented frames forever on legacy stacks). Vendored femtovg counts presented frames; a watchdog 8s after window-ready re-arms the renderer sentinel and restarts, so the existing ladder degrades wgpu -> alt adapter -> GL -> software on its own instead of stranding the user on a blank window. - #655: 'Add only new tracks' stays enabled with all-dupes (adds zero and closes) instead of disappearing as the primary action. km
This commit is contained in:
4 files changed
+36
-6
No files matched your search
+7
-1
@@ -196,7 +196,13 @@ impl GraphicsBackend for OpenGLBackend {
|
||||
&self,
|
||||
_surface: GLWindowSurface,
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
self.opengl_context.borrow().swap_buffers()
|
||||
let result = self.opengl_context.borrow().swap_buffers();
|
||||
if result.is_ok() {
|
||||
// QBZ vendor patch (#558): count presented frames for the
|
||||
// render-liveness watchdog.
|
||||
crate::note_frame_presented();
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
|
||||
Reference in new issue
Block a user