-
Notifications
You must be signed in to change notification settings - Fork 0
Optimizing
Building ontop of the Ininity Engine adds another layer of processing to the scene as a whole and could impact performance. Follow these best practices to ensure your scene runs smooth as possible.
- Keep the number of tracked
MovesWithWorldcomponents to a minimum. Parent objects as a much as you can, and assign just the parent toMovesWithWorld.
-
The more items the
MovesWithWorldSystemhas to move, the worse performance will be. -
Keep the number of tracked
MovesWithWorldcomponents to a minimum. Parent objects as a much as you can, and assign just the parent toMovesWithWorld. -
If you assign a
Transform.scaleto a parent entity usingMovesWithWorldit will affect the positions of the children.
-
Can be difficult to conceptualize. The player is held in one place by the Avatar Trap and the world is moved around them.
-
Will not work with any library that manipulates the
Transfrom.positioncomponent, unless those libraries account for accepting an alternative component,MovesWithWorld.position. For example: SDK7 Utils, NPC Toolkit, etc.- I do have ideas as to how these libraries could support alternate components.
-
MovesWithWorldnot work with Tween, as Tween manipulates theTransfrom.positioncomponent, but the Infinity Engine uses Transform to perform its work too.