MennoScholten / RTS2_20220524

1 stars 1 forks source link

Simulated real-time tasks #14

Closed martinreinok closed 1 year ago

martinreinok commented 1 year ago

Currently we have a game thread and render thread. Both of these could have a simulated deadline, where they repeat every x seconds. Then there is a busy-wait/spin loop until a new deadline has arrived after which the system can run once more. This might be problematic with user input though