Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-10-17 16:27:53 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-11-27 18:08:13 +0300
commit83d3a7c12d80d360268f36878e8ffc2832544b3c (patch)
treee5ea13e5193448680b7107ece1f142f87dbea0ac /source/blender/draw/engines/workbench/workbench_forward.c
parent2e6159a4948cd0f4e0b636734bfe506796bd87f2 (diff)
Workbench: Performance
Small performance improvements by caching the world_ubo in the World. It was detected that NVIDIA driver created threads to update the world_ubo (304 bytes). This patch will reuse the previous created ubo when not changed. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6087
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_forward.c')
-rw-r--r--source/blender/draw/engines/workbench/workbench_forward.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c
index d731b167c06..7a027bf9c86 100644
--- a/source/blender/draw/engines/workbench/workbench_forward.c
+++ b/source/blender/draw/engines/workbench/workbench_forward.c
@@ -337,8 +337,6 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
}
WORKBENCH_PrivateData *wpd = stl->g_data;
workbench_private_data_init(wpd);
- float light_direction[3];
- workbench_private_data_get_light_direction(wpd, light_direction);
if (!e_data.checker_depth_sh) {
e_data.checker_depth_sh = DRW_shader_create_fullscreen(