Sounds like the kind of thing you want to implement in a functional language, to have strong guarantees of determinism.<p>Have some threads waiting on input (controls, network), dispatch to pure functions running the simulation, stream render commands to a rendering component. You can even consider the RNG as one of the input streams to keep the core pure.<p>I&#x27;m not into game programming but this got me interested in implementing a toy RTS!