diff options
author | Sven Göthel <[email protected]> | 2024-01-22 05:53:34 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-22 05:53:34 +0100 |
commit | a883f3e2e1563736df32573141fd5119f0678c92 (patch) | |
tree | 647dd5b5ec8fcd236406a27ed38d68eda0de5c7a /src/graphui/classes/com/jogamp/graph/ui/widgets/RangedGroup.java | |
parent | ffe4e670c9d35121934c6f3c95067d9c18aee386 (diff) |
Bug 1490 - GraphUI Group: Resolve Performance Issues with Shape Mv Transform -> PMVMatrix4f
Shape.setTransformMv() is called for each renderer frame and for each shape,
involving 6 Matrix4f.mul() and set*() operations.
Since mutation of shape's position, rotation or scale is less frequent
than rendering one frame (for all shapes),
it is more efficient to maintain a local Matrix4f and update it
on such single mutations.
Rendering then only needs to perform one Matrix4f.mul() operation
using this internal matrix.
+++
Also changes name from setTransformMv(PMVMatrix4f) to applyMatToMv(PMVMatrix4f),
as its name might be misleading.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/widgets/RangedGroup.java')
0 files changed, 0 insertions, 0 deletions