Commit: ce114a307d522916af75814749751de660fa958c
Author: Germano
Date:   Fri Apr 13 10:38:13 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBce114a307d522916af75814749751de660fa958c

DRW: Deferred Shader Compilation: Optimize shaders compilation.

`glFinish()` that was causing bad perf issue on `Intel(R) HD Graphics 4000`.

===================================================================

M       source/blender/draw/intern/draw_manager_shader.c

===================================================================

diff --git a/source/blender/draw/intern/draw_manager_shader.c 
b/source/blender/draw/intern/draw_manager_shader.c
index c7fbe1dd42b..814109ee1e9 100644
--- a/source/blender/draw/intern/draw_manager_shader.c
+++ b/source/blender/draw/intern/draw_manager_shader.c
@@ -138,7 +138,7 @@ static void drw_deferred_shader_compilation_exec(void 
*custom_data, short *stop,
                *progress = (float)comp->shaders_done / (float)total;
                *do_update = true;
 
-               glFinish();
+               glFlush();
                BLI_mutex_unlock(&comp->compilation_lock);
 
                drw_deferred_shader_free(comp->mat_compiling);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to