Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Just a simple PC resource-using question

Author
Message
Murloc
15
Years of Service
User Offline
Joined: 28th Dec 2008
Location: Utena,Lithuania
Posted: 11th Apr 2009 21:18 Edited at: 11th Apr 2009 21:18
Is this normal if my Game uses 50% cpu in menu state?

Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 11th Apr 2009 21:28
Lol, i don't know too much about Dark GDK performance but that's pretty high i think. Are you using high poly models or anything like that?

I'm poetry in motion
Murloc
15
Years of Service
User Offline
Joined: 28th Dec 2008
Location: Utena,Lithuania
Posted: 11th Apr 2009 21:40 Edited at: 11th Apr 2009 22:11
No, I am not using any models. Just simple drawing commands.

Edit: Found out what I have done wrong.. Let's say a lot of redraw at a time

Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.
teltak
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location:
Posted: 11th Apr 2009 22:00
most games use about that much when in menu anyways. and it all depends on the type of CPU you have.

but i think that is normal
Murloc
15
Years of Service
User Offline
Joined: 28th Dec 2008
Location: Utena,Lithuania
Posted: 11th Apr 2009 23:10
Damn, I thought it was too much, but then I tried to launch any other game, and god damn, 50% xD How to undo what I have deleted? /joke

Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 12th Apr 2009 06:09 Edited at: 12th Apr 2009 06:11
If your game is using 50% CPU (I assume you're using dual core, so this will be 100% of one core) then your game is most likely sucking up as much processing power as it wants. It'll only use less if you use Sleep in the loop, which pauses the application for a specified amount of time (a few milliseconds should not be noticeable to the user) and thus gives the processor a break. Alternately, try using dbSetDisplayMode and specifying the VSync flag, as I believe this pauses the application while waiting to render the next frame - instead of using an intensive loop to constantly check if a certain amount of time has elapsed.

I really hate games that use maximum CPU, as sometimes I play some really old games like this that don't require very good hardware, yet my processor gets stressed out (no doubt due to busy waiting) causing the fan to speed up and be louder. This annoys me because the game probably only really requires about 1% of that processing power.

Login to post a reply

Server time is: 2024-11-25 14:34:13
Your offset time is: 2024-11-25 14:34:13