From b8a521a785e1c40ef247e6536f284afd9e39922a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Mar 2025 15:38:05 +0100 Subject: Reapply "WIP: use compute shader instead of graphics shader for better performance (especially on amd)" This reverts commit f85a7ab2055ddc8e2231a380f0c46e29e42c2072. --- src/capture/nvfbc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/capture/nvfbc.c') diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index b6a3671..5f47b00 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -390,16 +390,16 @@ static int gsr_capture_nvfbc_capture(gsr_capture *cap, gsr_capture_metadata *cap return 0; } - self->params.egl->glFlush(); - self->params.egl->glFinish(); + //self->params.egl->glFlush(); + //self->params.egl->glFinish(); gsr_color_conversion_draw(color_conversion, self->setup_params.dwTextures[grab_params.dwTextureIndex], target_pos, (vec2i){output_size.x, output_size.y}, self->params.region_position, frame_size, - 0.0f, false, GSR_SOURCE_COLOR_BGR); + GSR_ROT_0, false, GSR_SOURCE_COLOR_BGR); - self->params.egl->glFlush(); - self->params.egl->glFinish(); + //self->params.egl->glFlush(); + //self->params.egl->glFinish(); return 0; } -- cgit v1.2.3-70-g09d2