Blender Git Commit Log
Git Commits -> Revision 1d92888
Revision 1d92888 by Clément Foucault (master) December 10, 2018, 18:02 (GMT) |
DRW: Batch Cache: Add batch request system This makes it possible for engines to ask for batches and only fill their data after all engine populate functions have run. This means that, when creating the batches data we already know all the batches that are needed for this redraw and the needed data. This allows for less redundant data preparation and better attrib masking. Ideally, we should run all viewports populate function before executing the batch construction but this is not the scope of this patch. Conversion from the old request method will be progressive and both can coexist (see uses of mesh_create_pos_and_nor()). |
Commit Details:
Full Hash: 1d92888ee8e8abf7ba40c1875dedc84e0138be2c
Parent Commit: 33cc334
Lines Changed: +181, -57
5 Modified Paths:
/source/blender/draw/intern/draw_cache.c (+79, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+13, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+83, -55) (Diff)
/source/blender/draw/intern/draw_manager.c (+4, -0) (Diff)
/source/blender/draw/intern/draw_manager.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+13, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+83, -55) (Diff)
/source/blender/draw/intern/draw_manager.c (+4, -0) (Diff)
/source/blender/draw/intern/draw_manager.h (+2, -0) (Diff)