Using parallel thread for real-time accurate calculations of planetary positions

Hello!

I’m trying to create quasi-keplerian physics for my stellar system. I want to create feature able to precisely predict planetary positions in near future. For this purpose I have to measure planetary positions in exact time intervals. I failed to accomplish this with coroutines. Can someone make a suggestion with proper and beginner-friendly approach to this problem? I was thinking about constant loop operating in parallel thread on NativeList PlanetaryProgresses with permanent allocation. How can i realise that?

Greetings,
Adam

Create JobComponentSystem which iterates planets (or what you want) in, say, IJobParallelFor\IJobProcessComponentData\etc., and just call this system updates in tick which you want (from main thread or from counter in this system with [AlwaysUpdateSystem] attribute)