DRW: Deferred Shader Compilation: Optimize shaders compilation.
`glFinish()` that was causing bad perf issue on `Intel(R) HD Graphics 4000`.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user