Original Post
Hello, Most good game loop article I read give those advices : - Consume 100% of the CPU : while(!quit){...} - Separate Rendering from Logic - Update Logic at lower frequency (1/30) - Update Rendering at higher frequency (1/60) - Interpolate Rendering for example : http://www.gaffer.org/game-physics/fix-your-timestep/ http://www.flipcode.com/cgi-bin/fcarticles.cgi?show=63823 Seems good to me, expect the "Consume 100% CPU" (ok for console, not for PC) If you launch Warcraft3 or World Of Warcraft, your CPU will not be 100% busy. On my computer (pentium M 1.7 GHZ) Warcraft3 only consume 25% of the CPU, and the framerate is allways at 60 fps. I'm wondering what type of game loop Blizzard is using. - Do they sleep in the game loop ? Sleep doesnt seem reliable enough... - Do they use windows timer ? [Edited by - noooooon on May 5, 2007 10:12:01 PM]