RenderingOptions.MaxVerticesPerFrame Property
Definition¶
Namespace: Brine2D.Rendering
Gets or sets the number of vertices that can be staged per GPU transfer pass.
public int MaxVerticesPerFrame { get; set; }
Property Value¶
Remarks¶
This value sizes the GPU vertex buffer and per-frame transfer buffers (3 in flight).
Each vertex is 32 bytes, so memory cost is approximately MaxVerticesPerFrame × 32 × 4 bytes
(1 vertex buffer + 3 transfer buffers). The default of 50,000 uses ~6.4 MB total.
When this limit is reached mid-frame, the renderer automatically flushes pending draw calls
to the GPU and reuses the buffer space — no vertices are dropped.
Larger values reduce the number of mid-frame flush passes at the cost of more GPU memory.