Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performance lag for Endless Road generation
#3
I was able to reduce the lag. As you can see in the above image, there were more wall prefabs being spawned. The track was straight, so scaling the wall length decreased the overall number of wall to be spawned. That helped in reducing the cpu usage while spawning them.

I have a doubt though from the performance doc.

In the recommended "Split Splines" method
"When a spline is used as an input for a Curvy Generator, the CG will update every time that spline is modified. That means that if you modify a kilometer long spline used for mesh extrusion, the whole mesh will be updated even if only the last meter of the spline is modified. A way to avoid this scenario would be to have a CG extruding the static part of the spline, and another one extruding the part that will be updated (that last meter)"

Can you please explain a bit more, this part "A way to avoid this scenario would be to have a CG extruding the static part of the spline, and another one extruding the part that will be updated (that last meter)" ?
Reply


Messages In This Thread
RE: Performance lag for Endless Road generation - by User2200 - 04-06-2021, 09:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to create a road texture at runtime? artsung 1 4 01-30-2024, 09:30 AM
Last Post: _Aka_
  I want to improve the performance of Variable Mix Shapes yanke 7 8 07-27-2023, 09:15 PM
Last Post: _Aka_
  Multiple Splines and Generators Performantly for Road System drock 1 6 07-17-2023, 10:31 AM
Last Post: _Aka_
  How can I remove one segment of the road that I made by spline? Chanon 3 7 09-14-2022, 04:44 PM
Last Post: _Aka_

Forum Jump: