08-04-2020, 11:01 AM
I'm no expert on how line renderers work, but do they have to be updated every frame even if the solver is not enabled?
The reason I'm asking is my current scene has 8 (very low particle usage ~10-30 each) ropes which solvers I toggle on and off when I need to simualte the ropes in order to save performance.
I noticed the rope line renderer takes 25% of my CPU even when the rope is not simulating while the mesh extruder does not?
Can I hack the ObiRopeLineRenderer.UpdateRenderer() method to only update when the rope's solver is enabled or will that have unforeseen consequences?
Right now I'm in between having bad performance when ropes are idle (using line renderer) or bad performance when they are running (using extruder).
The reason I'm asking is my current scene has 8 (very low particle usage ~10-30 each) ropes which solvers I toggle on and off when I need to simualte the ropes in order to save performance.
I noticed the rope line renderer takes 25% of my CPU even when the rope is not simulating while the mesh extruder does not?
Can I hack the ObiRopeLineRenderer.UpdateRenderer() method to only update when the rope's solver is enabled or will that have unforeseen consequences?
Right now I'm in between having bad performance when ropes are idle (using line renderer) or bad performance when they are running (using extruder).