Question about CPU load

Started by Eistoeter, July 21, 2009, 11:10:21

Previous topic - Next topic

Eistoeter

Hello there.

I have a little question. I have vsync enabled for my game if I look into the windows task manager the CPU load is at 50% all the time even if I don't really do something. I tried using Display.sync(60) ... doesn't change anything. However if I say Display.sync(58) the CPU load drops to about 4% (!!) ... what's wrong with this?

shatterblast

There might be a Windows service that activates or sleeps depending on the frame rate to the monitor.  I think Windows XP has at least one that does that even without a hardware driver, but I'm not sure about Vista.  Direct X can behave similarly I think.

Eistoeter

That would at least explain why my friend with his Vista machine does not have this problem. Is here nobody else running XP and having this problem? Hm .. if it comes from Windows maybe it isn't really a problem at all?

Sardtok

I've never had that problem, but if it's related to some service, I might have turned it off.
And my app has hundreds to thousands of particles which are handled using collections (yes, the "slow" Java Collections).

Also, what graphics card do you use?
Might be a weird driver. I'm on an ATI card (X1400 Mobile).
igg -- Take me off for great justice?

Eistoeter

Nvidia Gefroce Go 7300 mobile ...