EEVEE: Remove unneeded GPU_finish
A GPU_finish for each EEVEE_render_draw was initially added by
3f0873fa1e but it introduces
important GPU execution gaps during rendering.
Removing it gives a ~10% improvement on Intel Arc / Windows from
our testing with Red Autumn Forest scene.
Pull Request: https://projects.blender.org/blender/blender/pulls/109382
This commit is contained in:
committed by
Clément Foucault
parent
7d54a756b9
commit
4038cabc6d
@@ -651,8 +651,10 @@ void EEVEE_render_draw(EEVEE_Data *vedata, RenderEngine *engine, RenderLayer *rl
|
||||
/* Post Process */
|
||||
EEVEE_draw_effects(sldata, vedata);
|
||||
|
||||
/* XXX Seems to fix TDR issue with NVidia drivers on linux. */
|
||||
GPU_finish();
|
||||
/* NOTE(@fclem): Seems to fix TDR issue with NVidia drivers. */
|
||||
if (GPU_type_matches_ex(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_ANY, GPU_BACKEND_OPENGL)) {
|
||||
GPU_finish();
|
||||
}
|
||||
|
||||
/* Perform render step between samples to allow
|
||||
* flushing of freed GPUBackend resources. */
|
||||
|
||||
Reference in New Issue
Block a user