JamesTKhan/Mundus

Improve SimpleNode efficiency

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
SimpleNode does not cache the matrix transforms. A call to getTransform recalculates the transform along the entire parent chain every time which is inefficient on the CPU.

Describe the solution you'd like
Implement caching of transforms with an isDirty flag, as described here https://gameprogrammingpatterns.com/dirty-flag.html