Polling thread 1000hz
Real time loop - check how long it took to execute
checks for key input and sets an atomic boolean high or low.
i.e.
upArrow;
UserInput Thread 120hz
Real time loop - check how long it took to execute
Checks the atomic booleans and takes actions if they are true
(needs a mutex to move the tetromino)
Polling thread 1000hz Real time loop - check how long it took to execute checks for key input and sets an atomic boolean high or low. i.e. upArrow;
UserInput Thread 120hz Real time loop - check how long it took to execute Checks the atomic booleans and takes actions if they are true (needs a mutex to move the tetromino)