08-11-2019, 09:07 PM
OK, I bought Obi Rope, created a rope at first using the ObiRopeExtrudedRenderer (made by selecting GameObject -> 3D Object -> Obi Rope fully set up).
The rope is 3m long, rendered using 52 particles, and with one pin constraint at the beginning and end particle, so the leash is connected to the human and the dog. So far, so good.
And then I hit Play...
I noticed immediately that there's a performance drop which is super noticeable. Profiling the game, I find the following:
[attachment=460]
For some reason, there are two FixedUpdates and two WaitForAllSolvers.
Changing the renderer to the ObiRopeLineRenderer improved the framerate, but there were still noticeable spikes, seeing something like this:
[attachment=461]
What can I do to improve the framerate? My guess is that it starts by changing the FixedUpdate to only one call. I've tried increasing the Fixed Timestep to 0.04, but there are still occasional hitches.
Thanks!
The rope is 3m long, rendered using 52 particles, and with one pin constraint at the beginning and end particle, so the leash is connected to the human and the dog. So far, so good.
And then I hit Play...
I noticed immediately that there's a performance drop which is super noticeable. Profiling the game, I find the following:
[attachment=460]
For some reason, there are two FixedUpdates and two WaitForAllSolvers.
Changing the renderer to the ObiRopeLineRenderer improved the framerate, but there were still noticeable spikes, seeing something like this:
[attachment=461]
What can I do to improve the framerate? My guess is that it starts by changing the FixedUpdate to only one call. I've tried increasing the Fixed Timestep to 0.04, but there are still occasional hitches.
Thanks!