Advertisement

Having some problems...

Started by August 23, 2007 06:10 PM
0 comments, last by Palidine 17 years, 3 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?
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