DRW: Reuse DRWCallState for the same object.
authorClément Foucault <foucault.clem@gmail.com>
Wed, 28 Feb 2018 15:23:33 +0000 (16:23 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 1 Mar 2018 02:53:25 +0000 (03:53 +0100)
commit64e35f6fd21fbadb68624529ef36a2ddf82640f5
tree4c4a8b87c91c66d80f7d7f73830ded219f6aa3c4
parent1ba96857d1ea50d97d0b305c270414ac4df5ac16
DRW: Reuse DRWCallState for the same object.

This enables caching the matrices and reducing redraw time of the same object which is particulary important for eevee.
source/blender/draw/intern/draw_manager.c
source/blender/draw/intern/draw_manager.h
source/blender/draw/intern/draw_manager_data.c
source/blender/draw/intern/draw_manager_exec.c