gururise / RigidBody3D-Stress-Test

RigidBody3D Stress Test for Godot 3.x
MIT License
11 stars 2 forks source link

Godot Rigidbody3D Stress Test

This is a Rigidbody3D stress test for Godot 3.1+ (Updated for Godot 3.3+) designed to test the performance of the 3D Physics Engine in Godot. It was inspired by a similar stress test done in Unity. In that test, Unity was able to simulate 1,500 rigid bodies and still maintain over 100 fps on a Dual Xeon E5-2v650 v2 (2.60 Ghz)

Video

A video using this code can be found on YouTube.

Features

Performance

Since switching to MultiMeshes, performance has increased significantly. On my Core i7-3770 (3.4 Ghz), I am able to easily simulate well above 1500 cubes. Here are a couple of ideas for improving performance through adjustments to the Project Settings:

Todos

License

MIT License (MIT)

Copyright (c) 2019 Gene Ruebsamen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.