I've got a few burst-compiled jobs in my game for various tasks, some of which take ~0.5ms when fully parallel. I'm looking for the cleanest way to organise them so that they start at the start of each frame, but are only completed towards the end.
I've tried:
-Coroutines -> Generate garbage/not optimal
-Awaitables -> Still generates garbage every few frames even though they are apparently 'pooled'
Ideally I'm looking for a solution where the whole job scheduling + completion can still sit in one method to keep things nice and readable, if such a thing exists.