I was wondering does pin behavior still use the same amount of resources even when the object it's pinned to is not moving? In other words, if I have object A pinned to object B, and I stop moving object B for a while, should I also unpin object A temporarily or does it matter at all performance-wise (I have lots of different pinned objects in my project)?
I want to improve the framerate on my game so I'm trying to optimize whatever I can, so any input on this is greatly appreciated!
Develop games in your browser. Powerful, performant & highly capable.
As far as I know leaving non-moving objects pinned should not make an impact on your performance. I thing you are better off optimizing your game in other ways. These are worth a read:
https://www.scirra.com/blog/83/optimisa ... -your-time
glerikud thank you, that's what I also suspect is the case but just wanted to make sure, as I have quite a few pinned objects in my project. Maybe Ashley can shed some light in this.
I'm already familiar with the links posted but I will read through them again to see if I've missed anything. I've managed to get my game running a bit smoother now but few extra FPS couldn't hurt
It's probably slower to pick and unpin objects that aren't moving instead of just leaving them pinned.
Answer your own performance questions with measurements
In this case I doubt you will be able to measure any difference, so it's probably just a waste of time.