Hacker News new | past | comments | ask | show | jobs | submit login

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.




For 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: