11-11-2019, 07:47 PM
(This post was last modified: 11-11-2019, 07:49 PM by jpalz.
Edit Reason: Extra info
)
(11-11-2019, 06:01 PM)josemendez Wrote: Hi,
Strange, I'm unable to reproduce any spikes :/. With no ropes in it (thus no active particles), the solver basically does nothing at all. May I see the hierarchy view in your profiler?
Edit:
Here's the tests I performed in a fresh project, using Obi downloaded from the store. Added a new solver to the scene, no spikes at all, performance is exactly the same as with no solvers in the scene. Adding a single 1 meter rope, simulation takes 0.28 ms (multithreaded, 2 cores) and rendering 0.6 ms (single threaded). If you're not getting similar results, there's either some issue in your project or some bug in Obi. Taking a look at where those +60 ms are being spent during the spikes might shed some light!
Here's the hierarchy of the project:
[attachment=463]
LeashManager is the object that has the ObiSolver component. Player, Rope Stuff and Collision Plane have ObiColliders and ObiRigidbodies.
I made a new scene, with a Main Camera and a Directional Light, and placed the ObiSolver on the Camera. I got these results on the profiler:
[attachment=464]
EDIT: There are no ropes in the new scene. I'm using 2019.2.0f1 x64