Rotating multiple objects

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? :wink:

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.

2 Likes

What car?

You will need to provide a lot more information on what you are doing and how you are doing it, if you want any meaningful advice.

an object with cubes when rotated causes a drop in fps

7081111--842599--1.JPG

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.

Orange peaks when turning an object. This does not happen if you remove the cubes.

You found the solution, just remove the cubes.

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.

1 Like

this is the whole point, the cubes should be.

The question is how to move all these cubes without falling fps

I can animate 200 objects to the camera, even on android at 40 fps! The problem was solved by temporarily disabling the box colliders on the cubes.