Blender Git Commit Log

Git Commits -> Revision 4a73127

Revision 4a73127 by Clément Foucault (master)
April 6, 2018, 08:25 (GMT)
UI: Perf: Improve ui_draw_dropshadow.

Replace the 12 iterations of UI_draw_roundbox_4fv with only one batch.

This mean less overdraw and less drawcalls.

I had to hack the opacity falloff curve manually to get approximatly the
same result as previous technique. I'm sure with a bit more brain power
somebody could find the perfect function.

Commit Details:

Full Hash: 4a73127a2b11056236c40e85ceb75230f2b4888d
Parent Commit: 80d4d71
Lines Changed: +147, -2

2 Added Paths:

/source/blender/gpu/shaders/gpu_shader_2D_widget_shadow_frag.glsl (+13, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_widget_shadow_vert.glsl (+64, -0) (View)

6 Modified Paths:

/source/blender/editors/interface/interface_draw.c (+26, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_widgets.c (+36, -0) (Diff)
/source/blender/gpu/CMakeLists.txt (+2, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021