godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.71k stars 20.12k forks source link

Trimesh static body collision shapes issue in Godot 4 (vis a vis Godot 3) #76125

Open sanyi12 opened 1 year ago

sanyi12 commented 1 year ago

Godot version

4.0.2

System information

Windows 10, RTX3070

Issue description

When creating a trimesh static body in Godot 4, the performance drops significantly (from solid 165fps to 3fps) which is not the case with Godot 3.

Steps to reproduce

any 3d object with a trimesh static body in a simple scene would do

Minimal reproduction project

testbug.zip

Zireael07 commented 1 year ago

I believe this is a side effect of the fact the physics engine changed behind the scene (from Bullet to Godot Physics)

Calinou commented 1 year ago

I can confirm this on 4.0.2 (Linux) with the MRP.

Can you test this issue in Godot 3.5.2 after switching the 3D physics engine to GodotPhysics in the Project Settings?