- Home /
Question by
Reyku · Dec 08, 2020 at 08:14 AM ·
memory-leakmultithreadingwarning
While working with Jobs I get this warning Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely to leak
Here's a picture of the warning
internal.jpg
(143.9 kB)
Comment
Answer by joshrs926 · Jan 31, 2021 at 06:45 PM
If your job takes longer that 4 frames then you should use Allocator.Persistent for any Native containers that you pass into the job when creating it. Then be sure to dispose of those containers after the job completes.