I just finished converting quite a large chunk of my code to DOTS jobs instead of the old threading system. I must be getting a memory leak, because on the second frame of runtime my game completely freezes. Unfortunately I can’t find any way to debug this as the program complete freezes up. Does anyone know ways to debug this to see what’s causing it to freeze?
EDIT: Most of the lag seems to be caused by GC.Collect. I’m not sure why the garbage collector is taking so long, has anyone run into this problem when using JobHandle.CompleteAll?