L
L
LittleBob2021-10-19 13:04:29
Unity
LittleBob, 2021-10-19 13:04:29

How to optimize a large number of objects in Unity2D?

I have a game where a lot of objects spawn with Instantiante and are removed after about 5 - 10 seconds with an object with BoxCollider2D or Destroy. On my phone (Redmi note 7) there are no lags, but if you take a weaker phone, then fps drops more significantly. What are the ways to optimize this?
Play on google play if needed - https://play.google.com/store/apps/details?id=com....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KraGen.Developer, 2021-10-19
@LittleBob

Use materials for Mobile phones, limit the number of created objects, optimize the script. Use a sprite atlas (judging by the photo in Google Play, sprites are the basis of graphics). Optimize lighting and quality presets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question