GML Performance question

zampa

Member
Is it more efficient( from a memory stand point ) to make platforms move through paths or code?

Thanks for the answer and happy holidays.
 

jo-thijs

Member
Is it more efficient( from a memory stand point ) to make platforms move through paths or code?

Thanks for the answer and happy holidays.
Depends on the path and on the code.

Neither will have a significant impact on memory however.

You should rather choose the approach that's most flexible to you.
If your object won't always follow the entire path (a moving platform may revese diection when colliding with a wall), go with code.
If you have a parameterized path (paramete of path size for example), then go with code.
If you have a complex path with little regulaity, then go with paths.

In your case, I'd first try out code.
 
Top