Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LODs
#4
(03-21-2021, 07:59 PM)digot Wrote: Is there a way to spawn the generared meshes so that it won't freeze the game?
The freeze happens when too much work is done while generating the mesh. Reducing that amount of work really depends on each case. What I recommand is:
- if not already done, read this: https://curvyeditor.com/documentation/performancetips/start
- profile the frame that makes your game freeze, and see what is taking time, and whether you need it. For example, if you don't need a mesh collider, don't generate it, or maybe generate a simpler box collider instead.

(03-21-2021, 07:59 PM)digot Wrote: Is there a way to spawn the generared meshes so that it won't freeze the game? If there is no built-in way, how can I spawn/generate the meshes one by one without having the regenerate/respawn all everytime I do .Refresh on the generator?
Sorry, no automatic way, but you can duplicate your generator, and make each copy generate a parth of the mesh, and make them update alternatively. This is done in InfiniteTrack.cs, used in example scene 51
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
LODs - by digot - 03-20-2021, 07:41 PM
RE: LODs - by _Aka_ - 03-21-2021, 07:06 PM
RE: LODs - by digot - 03-21-2021, 07:59 PM
RE: LODs - by _Aka_ - 03-22-2021, 09:19 AM
RE: LODs - by digot - 03-22-2021, 01:21 PM
RE: LODs - by _Aka_ - 03-22-2021, 05:27 PM
RE: LODs - by digot - 03-23-2021, 02:59 PM
RE: LODs - by _Aka_ - 03-26-2021, 08:35 PM
RE: LODs - by _Aka_ - 03-25-2021, 05:28 PM
RE: LODs - by digot - 03-28-2021, 03:52 AM
RE: LODs - by _Aka_ - 03-29-2021, 09:20 AM
RE: LODs - by digot - 04-04-2021, 01:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Deforming prefabs with LODs along a spine LiveWire 0 2 11 hours ago
Last Post: LiveWire

Forum Jump: