From fbff0e68a4cb43d24f0e034b084307930114908b Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 16 Jun 2015 20:55:37 +0200 Subject: Drawing speedup: We really don't need to iterate all edges of the mesh every frame to search for loose edges, this calculation can be cached when filling the edge index buffer. --- source/blender/gpu/GPU_buffers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/gpu/GPU_buffers.h') diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index 8b65666265d..842553a5fb9 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -113,6 +113,9 @@ typedef struct GPUDrawObject { /* caches of the original DerivedMesh values */ int totvert; int totedge; + + int loose_edge_offset; + int tot_loose_edge; } GPUDrawObject; /* used for GLSL materials */ -- cgit v1.2.3