diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-07 11:47:27 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-07 11:51:49 +0200 |
commit | b0b1442a037be7bc6b07c11920dbf25207a9136e (patch) | |
tree | ca4e82a5d7a72c22e62bb9c21610a4a9d63ca307 /src/egl.c | |
parent | baa7bfd5e460c8401385e098649eee07db7a6614 (diff) |
Swap flush and memory barrier5.5.7
Diffstat (limited to 'src/egl.c')
-rw-r--r-- | src/egl.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -517,15 +517,7 @@ void gsr_egl_unload(gsr_egl *self) { } void gsr_egl_swap_buffers(gsr_egl *self) { - /* This uses less cpu than swap buffer on nvidia */ - // TODO: Do these and remove swap self->glFlush(); -// self->glFinish(); - // if(self->egl_display) { - // self->eglSwapBuffers(self->egl_display, self->egl_surface); - // } else if(gsr_window_get_display_server(self->window) == GSR_DISPLAY_SERVER_X11) { - // Display *display = gsr_window_get_display(self->window); - // const Window window = (Window)gsr_window_get_window(self->window); - // self->glXSwapBuffers(display, window); - // } + // TODO: Use the minimal barrier required + self->glMemoryBarrier(GL_ALL_BARRIER_BITS); // GL_SHADER_IMAGE_ACCESS_BARRIER_BIT } |