Blender Git Commit Log

Git Commits -> Revision fefc9c9

Revision fefc9c9 by Clément Foucault (master)
April 5, 2019, 19:15 (GMT)
DRW: Opti: Replace bound tex/ubo tracking array by bitfields

release_texture_slots() and release_ubo_slots() were one hotspot when
drawing taking ~9% of total CPU counters for no reason.

This was because of the loops using GPU_max_textures that was overkill and
slow.

Replace those by a simple 64bit bitwise OR operation.

Commit Details:

Full Hash: fefc9c95e4818768ba08c665111d2e405ae72672
Parent Commit: 2219f28
Lines Changed: +100, -83

3 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+1, -17) (Diff)
/source/blender/draw/intern/draw_manager.h (+11, -6) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+88, -60) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021