- Home /
Question by
Mun-Yeong-Seok · Sep 07, 2017 at 05:45 AM ·
meshobjectperformancecreate
'Pre-create object VS Create when needed' Performance difference
It is a mobile game. There are 1000 different mesh objects. Each mesh object consists of an average of 200 Tris. And each mesh object is created only one in the scene. So, what's the best way to create mesh objects here?
Place it in the scene in advance.
Create it at runtime as needed.
Other way?
Comment
Answer by FortisVenaliter · Sep 07, 2017 at 06:54 PM
There's typically no one answer when it comes to optimization. The best thing to do is make a simple unit test for each scenario, bump your numbers up really high, and run it with the profiler. Use whichever is quickest.