Blender Git Loki
Git Commits -> Revision 8991e0f
Revision 8991e0f by Sergey Sharybin (opensubdiv-modifier) July 17, 2014, 08:56 (GMT) |
OpenSubdiv: Reduce number of glDrawEleemnts calls when in solid view Made it so OsdGLMesh partitions are drawn in batches, so if mesh does have a continuous set of faces with the same material they all will be displayed with a single glDrawEelemnts call. Not sure how this affects on performance on the better quality cards, but on laptop it brings FPS back to the same value as it was before implementing multiple textures in solid view (it's around 25% speed gain on Intel card). That's a good practice anyway to reduce number of glDrawElements anyway, so even if we wouldn't support low-end GPU with old driver (because of geometry shader) it's still good to have. Improvements to textured and GLSL display will be done later, |
Commit Details:
Full Hash: 8991e0f3a36a631203af7f0d760faede9ea5a7c0
Parent Commit: c614aa2
Lines Changed: +153, -45
5 Modified Paths:
/intern/opensubdiv/opensubdiv_capi.h (+2, -1) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+120, -32) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+25, -9) (Diff)
/intern/opensubdiv/opensubdiv_gpu_capi.cc (+120, -32) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/CCGSubSurf.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+25, -9) (Diff)