This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Clément Foucault f6ad538040 UI: Perf: widgetbase: Replace imm usage by a batch cache.
Introduce a UI batch cache. For the moment it's only used by widgetbase so
leaving it interface_widgets.c. If it grows, it can have its own file.

Like all preset batches (batches used by UI context), vaos must be refreshed
each time a new window context is binded.

This still does 3 GWN_batch_draw in the worst cases but at least it does
not use the IMM api.

I will continue and batch the 3 calls together since we are really CPU
bound, so shader complexity does not really matters.

I cannot spot any difference on all the widgets I could test. I did not use
any unit tests so I cannot tell if there is really any defects.

This is not a complete rewrite but it adresses the top bottleneck found
after a profilling session.
2018-03-29 14:22:50 +02:00
2018-03-26 14:56:00 +02:00
2018-03-14 08:13:27 -03:00
2017-05-01 15:20:19 +02:00
2010-10-13 14:44:22 +00:00
2017-12-12 13:55:09 +11:00
Description
Archive of Blender with old branches
823 MiB
Languages
C 67.4%
C++ 23.4%
Python 6.1%
CMake 1.5%
GLSL 1.1%
Other 0.4%