diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-04-05 21:45:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-04-05 22:15:25 +0300 |
commit | fefc9c95e4818768ba08c665111d2e405ae72672 (patch) | |
tree | 3eaf8cdd0a7ead15111c618009c32c2480642a45 /extern | |
parent | 2219f28a68b69ba227270abadbcaa431601d42dc (diff) |
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.
Diffstat (limited to 'extern')
0 files changed, 0 insertions, 0 deletions