12-03-2015, 06:23 PM
Hey there,
I am trying to implement Curvy into my VR game as a path modifier at runtime. Basically, each time the player picks a new direction there is a path generated using Curvy. The paths seem to be working well but I am also generating a tube mesh to go along with it and it seems to be slowing me down quite a bit.
Each time I call the path generator it adds 38ms delay. You can see the attached screenshot below. The delay also occurs when I Clear() the spline as well as you can see by the spike later on in the graph as well.
Is there something I can do to optimize this? I am trying to keep my frame rate very consistent.
Thank you!
Mac
I am trying to implement Curvy into my VR game as a path modifier at runtime. Basically, each time the player picks a new direction there is a path generated using Curvy. The paths seem to be working well but I am also generating a tube mesh to go along with it and it seems to be slowing me down quite a bit.
Each time I call the path generator it adds 38ms delay. You can see the attached screenshot below. The delay also occurs when I Clear() the spline as well as you can see by the spike later on in the graph as well.
Is there something I can do to optimize this? I am trying to keep my frame rate very consistent.
Thank you!
Mac