Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The mark of Windows, "My proudest achievement of Windows XP was fixing the game so it didn’t consume 100% CPU."


How was this accomplished?

The original was like

while(true); render();

now its like

while(true); render(); sleep(); ???



How is the “limiter” implemented?


He doesn't say, but it was probably just adding call to sleep in the loop.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: