unless the code specifically sleep()s or does something of an idle loop, this is what happens (100% cpu). look at any game, it will consume 100% cpu even if you turn down all the details. in order to make it take less cpu, you have to implement FIXED FRAMERATE. that is, you go idle if you are too fast.