fix: add debug logging for frame processing in event loop

This commit is contained in:
MayaTheShy
2025-11-08 21:05:58 -05:00
parent 697761d38d
commit 609ccf9479

View File

@@ -344,12 +344,12 @@ pub extern "C" fn sdxr_start(app_id: *const std::os::raw::c_char) -> i32 {
}
}
if frames.is_empty() { return; }
eprintln!("[bridge/event_loop] Processing {} frames, state has {} nodes", frames.len(), state.nodes.len());
for frame in frames {
if let Ok(ctrl) = CTRL.lock() { if let Some(shared) = &ctrl.shared_state { if let Ok(ss) = shared.lock() { state.nodes = ss.nodes.clone(); } } }
state.on_frame(&frame);
projector.frame(&context, &frame, &mut state);
}
eprintln!("[bridge/event_loop] Processing {} frames, updating projector with {} nodes", frames.len(), state.nodes.len());
projector.update(&context, &mut state);
if STOP_REQUESTED.load(Ordering::SeqCst) { flow.stop(); }
});