When you rotate 100 -200 cubes, the fps decreases at the same time. These cubes are attached to the car, this is a constructor. How to solve this problem.
an object with cubes when rotated causes a drop in fps
Orange peaks when turning an object. This does not happen if you remove the cubes.
I do lots of stuff, it’s slow. How can I make it not slow?
Do less stuff? Do the stuff more efficiently?
For more useful information, try providing some useful information such as exactly what you’re doing, how you’re doing it, what you’ve tried and what you expect.
That’s not really much more info. I suggest looking at the profiler to see which part is causing the “drop in fps” (no idea if it’s even significant even). It’s likely the scripts attached to each where you’re doing too much work but the profiler will show you what’s causing the issue.
BTW, you haven’t described the real problem you’re trying to solve. No, the “I’m trying to rotate some cubes on a car” isn’t a problem, it’s a solution you came up with for some real problem.
So what is the problem you’re trying to solve?
BTW, in MonoBehaviour, you won’t really animate 200 objects at once on camera. Forget it.