Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/react-native/webgpu/webGpuFrameRenderLoop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ export function createWebGpuFrameRenderer(
};

onFrame(render);
if (!rendered) {
// A dropped frame still imported the camera. Dawn frees that import only after queue work
// completes, so with nothing submitted every skipped frame's camera buffer stays alive.
device.queue.submit([]);
}
} finally {
// End the camera texture's access window now — waiting for GC would starve the camera's
// own frame buffer pool.
Expand Down
Loading