-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededperformancePerformance enhancementPerformance enhancement
Description
On a CoreNode, if it's rotation prop is 0 and both it's scaleX and scaleY props are 1, there is no need to create a scaleRotateTransform. In updateLocalTransform we can check if the scaleRotateTransform exists, and if not, simply create the Local Transform without using it. The pivotX and pivotY properties can also be completely ignored in this case since they only apply during scaling/rotation.
Since likely most Nodes in applications will not be need scaling or rotation this should save some CPU bound memory per node while also cutting down on calculations done during the first update for Nodes.
elsassph
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededperformancePerformance enhancementPerformance enhancement