4 ms·
Keep in mind that by spinning, you're preventing the CPU from sleeping thus wasting a lot of energy. At the very least, make sure you stop spinning when the ga
by magicalhippo 6y ago
Keep in mind that by spinning, you're preventing the CPU from sleeping thus wasting a lot of energy.
At the very least, make sure you stop spinning when the game loses focus.
- bob1029 6y agoFor reference, the domain of usage of this timer thread is in a server-side application. Clients do not have to run this. The server application handles many clients simultaneously, so cost of spinning is amortized across many users.