Blender Git Loki

Git Commits -> Revision 629a874

Revision 629a874 by Clément Foucault (master)
February 14, 2018, 17:59 (GMT)
DRW: Add instance buffer manager.

This manager allows to distribute existing batches for instancing
attributes. This reduce the number of batches creation.
Querying a batch is done with a vertex format. This format should
be static so that it's pointer never changes (because we are using
this pointer as identifier [we don't want to check the full format
that would be too slow]).

This might make the original Instance Data manager useless but it's currently used by DRW_object_engine_data_ensure().

Commit Details:

Full Hash: 629a87481769d8886fcbe66ca4e4e4b60c767627
Parent Commit: ab7e7a0
Lines Changed: +150, -1

4 Modified Paths:

/source/blender/draw/intern/draw_instance_data.c (+130, -1) (Diff)
/source/blender/draw/intern/draw_instance_data.h (+14, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+5, -0) (Diff)
/source/blender/draw/intern/DRW_render.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021