Blender Git Loki

Git Commits -> Revision 680f803

November 17, 2018, 16:52 (GMT)
GP: Drawing Engine use only one batch

This is part of T57829.

Reduce the number of used batches to only one by shader type. This reduces GPU overhead and increase a lot the FPS. As the number of batches is small, the time to allocate and free memory was reduced in 90% or more.

Also the code has been simplified and all batch management has been removed because this is not necessary. Now, all shading groups are created after all vertex buffer data for all strokes has been created using DRW_shgroup_call_range_add().

All batch cache data has been moved to the Object runtime struct and not as before where some parts (derived data) were saved inside GPD datablock.

For particles, now the code is faster and cleaner and gets better FPS.

Thanks to Cl�ment Foucault for his help and advices to improve speed.

Commit Details:

Full Hash: 680f8039ebd5419a1aca18c7d0b291ed1b1e4bdc
Parent Commit: aef6f7d
Lines Changed: +805, -789

11 Modified Paths:

/source/blender/blenkernel/BKE_gpencil.h (+0, -1) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+0, -48) (Diff)
/source/blender/blenloader/intern/readfile.c (+0, -2) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+84, -153) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+126, -120) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+511, -397) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+22, -37) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+59, -25) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+0, -2) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+0, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021