Blender Git Loki

Git Commits -> Revision c77870f

Revision c77870f by Clément Foucault (master)
March 31, 2018, 17:43 (GMT)
UI: Perf: Batch icons drawcalls together.

For this we use a new shader that gets it's data from a uniform array.
Vertex shader position the vertices using these data.

Using glUniform is way faster than using imm for that matter.

Like BLF rendering, UI icons are always (as far as I know) non occluded and
displayed above everything else. They also does not overlap with texts so
they can be batched at the same time.

Commit Details:

Full Hash: c77870fc78f594411c9831ee77eba2167a702fd7
Parent Commit: 4dc0c92
Lines Changed: +178, -1

2 Added Paths:

/source/blender/gpu/shaders/gpu_shader_2D_image_multi_rect_vert.glsl (+48, -0) (View)
/source/blender/gpu/shaders/gpu_shader_image_varying_color_frag.glsl (+11, -0) (View)

6 Modified Paths:

/source/blender/editors/include/UI_interface_icons.h (+3, -0) (Diff)
/source/blender/editors/interface/interface.c (+3, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+106, -1) (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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021