gpu: Use GL_STREAM_DRAW for the push constants buffer

This seems to hit a bunch of optimizations and makes push constants
slightly faster.
This commit is contained in:
Benjamin Otte
2023-10-04 03:23:42 +02:00
parent 84505db614
commit e54ff3110b

View File

@@ -105,7 +105,7 @@ gsk_gl_frame_submit (GskGpuFrame *frame,
glBufferData (GL_UNIFORM_BUFFER,
sizeof (GskGpuGlobalsInstance),
NULL,
GL_DYNAMIC_DRAW);
GL_STREAM_DRAW);
while (op)
{