Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021