Screenshot 2024-03-02 162726|690x314
Hello, guys! Is it a problem that the forest I built around the map has about 1000 trees? Like, will it affect performance?
Hi 21stefich,
Welcome to our community!
Generally, everything we do will affect the performance because everything we do requires the computer to do something. That’s normal.
The relevant question is usually: Is the performance affected in a noticeable way?
That’s something you will have to test, for example, by playing your game. If your game still runs smoothly with your 1000 trees, there is no noticeable problem with the performance.
If your game is very laggy after you added 1000 trees, you’ll either have to remove a few trees, or you’ll have to look for alternative solutions. Since performance optimisation requires a lot of knowledge, it is not taught in this course. However, if you are curious, you could read the Unity manual:
Depending on where the trees are located, an object pool could also help you improve the performance of your game:
https://gameprogrammingpatterns.com/object-pool.html
I hope this helped.
See also:
- Forum User Guides : How to apply code formatting within your post
- Forum User Guides : How to mark a topic as solved
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.