What one Windows XP feature am I most proud of?

Raymond Chen

Raymond

Of all the things I did for Windows XP, if I had to choose the one feature that Iā€™m most proud of, itā€™s fixing Pinball so it doesnā€™t consume 100% CPU.

The program was originally written for Windows 95 and had a render loop that simply painted frames as fast as possible. In the checked build, you could tell the program to display the number of frames per second. They reserved room for two digits of FPS.

When I got to looking at Pinballā€™s CPU usage, I built the checked version and took a peek at the frame rate. Imagine my surprise when I saw that Pinballā€™s frame rate on contemporary hardware was over one million frames per second.

I added a limiter that capped the frame rate to 120 frames per second. This was enough to drop the CPU usage from 100% to 1%. Now you can play Pinball while waiting for your document to print without noticeably impacting printing speed.

Raymond Chen
Raymond Chen

Follow Raymond