Sign in to follow this  
tcige

fullscreen app, why cpu always 100% on old computer

Recommended Posts

mhagain    13430

Some drivers implement vsync kind of like this:

 

while (1)
{
    if (IsItTimeToVSyncYet ())
    {
        ActuallyDoThePresentCall ();
        break;
    }
}

 

That's going to chew 100% CPU even though it's not actually doing anything most of the time.

Edited by mhagain

Share this post


Link to post
Share on other sites
tcige    206

Could it be simply that your "old computer" has less CPU cycles to do the same work, so its load is 100% ? Its not all servicing your app, after all.

 

Or the driver overrides your VSync behavior. Both AMD & NVIDIA control panels allow this.

 

Some drivers implement vsync kind of like this:

 

while (1)
{
    if (IsItTimeToVSyncYet ())
    {
        ActuallyDoThePresentCall ();
        break;
    }
}

 

That's going to chew 100% CPU even though it's not actually doing anything most of the time.

 

i test that if cpu has only one core, it will always be 100% when fullscreen

 

i mean directx 9, and os is xp, maybe 5 to 10 years ago

 

i do not know if gpu good enough can help make cpu usage lower at that time

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this