22-08-2019, 08:59 PM
(21-08-2019, 04:28 PM)josemendez Wrote: Hi there,
I don't see anything wrong with your code at first sight.
Using a ObiRopeLineRenderer won't make your rope straight, it works just like Unity's line renderer: it draws a camera-facing triangle strip, which is quite cheap compared to a full extruded mesh.
Also, always profile the exact same scenario, ie. the one that exhibits performance issues. Using a 4 segment section instead of a 8 segment one will have a negligible impact on just one rope, but the benefit will add up when you have several ropes.
Okay so the problem just got a whole lot weirder. Even using ObiRopeLineRenderer which btw doesn't look very good, the fps still drops the same amount. Is there anything else you can think of that could cause this to happen? I will tomorrow see what happens if I just reimport obirope and do it all from scratch. Thanks for your help so far I am sorry for being such a weird case