Blender Git Loki
Git Commits -> Revision 781995a
Revision 781995a by Clément Foucault (master) October 1, 2018, 13:14 (GMT) |
Edit UVs: Refactor drawing Edit UV in Image Editor NOTE: This commit only concern edit UVs and not the "shadow" mesh displayed when texture painting. This will be address in a future commit. We now cache the uv mesh in the mesh batch cache and only reupload data on changes. Update could be more granular (and a bit faster) but it's not our main concern ATM. This should fix problem caused by the IMM api used to draw large meshes. This makes performance skyrocket compared to previous implementation. There is still a big CPU bottleneck when not in sync selection mode but it is not related to the drawing function directly. |
Commit Details:
Full Hash: 781995a09c0b52ad2fd073510c2f7dc52383d461
Parent Commit: a5101de
Lines Changed: +878, -611
6 Added Paths:
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_edges_vert.glsl (+29, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_facedots_vert.glsl (+17, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_faces_vert.glsl (+24, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_points_vert.glsl (+42, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_stretch_vert.glsl (+49, -0) (View)
/source/blender/gpu/shaders/gpu_shader_point_varying_color_varying_outline_aa_frag.glsl (+30, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_facedots_vert.glsl (+17, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_faces_vert.glsl (+24, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_points_vert.glsl (+42, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_stretch_vert.glsl (+49, -0) (View)
/source/blender/gpu/shaders/gpu_shader_point_varying_color_varying_outline_aa_frag.glsl (+30, -0) (View)
6 Modified Paths:
/source/blender/draw/intern/draw_cache_impl.h (+15, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+461, -0) (Diff)
/source/blender/editors/uvedit/uvedit_draw.c (+168, -611) (Diff)
/source/blender/gpu/CMakeLists.txt (+7, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+7, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+29, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+461, -0) (Diff)
/source/blender/editors/uvedit/uvedit_draw.c (+168, -611) (Diff)
/source/blender/gpu/CMakeLists.txt (+7, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+7, -0) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+29, -0) (Diff)