Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | MxtApps |
Hi,
I have three doors that are AnimationPlayer
, and when I run the scene and try to open any door, the FPS
fall from 60 to 3. After that, they return to 60. I am worried because this maybe will crash the game in mobiles. This is a 3D scene. I also tried to avoid collisions while animating, but it does not take any effect in the scene. The scene has got more animations but they work fine.
How can I fix this error?
THanks in advanced
How many frames are in the animation and how large is the door? (perhaps show a screenshot)
Amateur.game.dev. | 2021-07-14 15:56
It might be because of all the CSG Meshes in your walls and door.
As they intersect they “create” a new mesh. What may be happening is that as you animate the door, every frame, the CSG meshes are recalculating their combined geometry.
Does the door need to be a CSG Mesh? Try replacing it with a basic MeshInstance and see if that changes anything.
Yuminous | 2021-07-15 02:48
It works, thanks.
MxtApps | 2021-07-15 10:00
That’s really great! I’ll put it in an answer so it can be seen as solved.
Yuminous | 2021-07-15 16:29