🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Having some problems...

Started by
0 comments, last by Palidine 16 years, 10 months ago
When I run the c++ code (also the EXE file found in the added zip) that is given in the first lesson, the cpu of this process shows more then 90% usage. quite odd isn't it?
Advertisement
What's odd is that it isn't taking 100% =)

this code will also take 100% of CPU:

int main(){    int poop = 0;    while (1)    {        ++poop;    }}


To make stuff take <100% generally you throw in sleep statements and whatnot. My guess is that it's not currently at 100% because swapping buffers is a blocking call so your app will hang there for a sec until the graphics card does it's work.

-me

This topic is closed to new replies.

Advertisement