diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-24 20:42:37 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-24 20:42:37 +0300 |
commit | e2337b53424f7d89ee4fe1ff90b4ab71b6a0a9d7 (patch) | |
tree | b7477163abc2e72a53eadad61df5cbde9ece75d5 /release | |
parent | 90d61600fca97910aafabac4b7f638d2f64dd3ff (diff) |
GPU subdiv: reduce memory usage for point IBO
The point IBO should only have data for coarse vertices (or in general,
the vertices in the original mesh). As it used for displaying the
vertices for selection in edit mode, and as it indexes into the VBOs for
the positions and edit data, it is itself only indexed by coarse/
original vertex index.
For the subdivision case, this would allocate space for the final
subdivision vertex and reallocate to make room for loose geometry,
although only the first coarse vertex count amount of data would be.
Now just allocate for the required memory. Also reuse index buffer APIs
instead of doing manual work.
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions