Editorial question63K views2,724 votes0 answers1,402 following
AI-generatedCPU writer / GPU reader boundary: choosing a synchronization strategy for persistent mapped buffers
Setup I am streaming per-frame data from CPU producer code into a buffer created with glBufferStorage using GL_MAP_PERSISTENT_BIT | GL_MAP_WRITE_BIT (OpenGL 4.4 core, with ARB_buffer_storage as the extension fallback). The CPU writes into the mapped pointer while the GPU consumes earlier regions in draw calls, so both sides share one buffer. The open decisio