flutter_texture_rgba_renderer/macos/Classes
yunchan 11478d230c macos: copy frames outside the queue the raster thread waits on (Kitedesk T-4204)
The whole frame, buffer and copy included, ran in queue.sync, and the
engine's raster thread takes the newest frame in copyPixelBuffer on the same
queue, so it waited for the copy: R T-4201 measured a p90 of 4.0 ms at 60 Hz
(6.5 ms at 120 Hz), and the raster thread draws the whole window.

The frame is now copied into its pool buffer outside the queue; the queue
only guards the pool, the newest frame and the handed buffers, so it is held
for a pointer swap.

Tests: raster_does_not_wait_for_copies passes (4K frames back to back: the
raster's median wait was 0.9 to 1.1 ms in three runs, up to 537 of 600 calls
over 1 ms; now 0.003 ms, at most 0.032 ms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:56:22 +09:00
..
TextRgba.swift macos: copy frames outside the queue the raster thread waits on (Kitedesk T-4204) 2026-11-15 09:56:22 +09:00
TextureRgbaApi.m fix memory leak on macOS (#9) 2023-03-14 12:44:36 +08:00
TextureRgbaRendererPlugin.swift Refact/stride align (#8) 2023-03-03 09:46:33 +08:00