Will this affect performance?
-
I have some objects that are off screen that have physics on them. They are called during certain moments of the game. My question is does those objects that are off screen affect performance? Basically when the game starts I imagine them pretty much falling down forever off screen until called upon. Is it better to just have them as a wall object then turned into physics later or does this not matter.
-
@SplitMindGaming Maybe set them to be scenery objects and turn them into physics objects once they are required.
Or, what I do, have a behavior that destroys everything with the tag “destroy on start” wherever all your main game logic takes place, attach the tag to the off-screen objects, and then spawn in copies of those objects as they are needed.
-
@bosswave yeah that’s smart thanks for that.
-
Off screen objects don't get "drawn" but they can have logic running on them. If they are physics objects like @bosswave described, then they will affect performance since they are part of the physical world. e.g if two objects bump into each other off screen, the bumped object could make its way back on screen
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login