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 / Hot Processor

Author
Message
Cypher Zero
18
Years of Service
User Offline
Joined: 11th May 2006
Location:
Posted: 6th Jan 2007 03:25
There was a nice function in DBP which prevented 100% of the processor being taken up 'sync on 1' or something if I recall.
Is there any equivalent in DGDK.NET or do I need to code it manually.

I only have this problem in fullscreen mode, and System.Windows.Forms.Application.DoEvents doesn't work (with or without DGDK).

I wouldn't mind usually, but my computer has a habbit of overheating and shutting down.
Anyone know of a solution?
Miguel Melo
19
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 6th Jan 2007 12:23
Buying a bigger processor fan?

I have vague plans for World Domination
Cypher Zero
18
Years of Service
User Offline
Joined: 11th May 2006
Location:
Posted: 6th Jan 2007 17:42
It's a laptop, and it already has two processor fans
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 6th Jan 2007 18:00
I'm somewhat curious as to why your processor level is whacked up to full pelt. DoEvents should relinquish control to other threads such as the System Idle process, and oDBCore.Sync() should just do the rendering, then done. I can only assume that your process is running at high priority somehow. Like, if I run the Asteroids.NET sample, it pushes my processor to about 70-75% usage, and the System Idle process happily chugs at around 20-25%. So I'm not using it at it's full usage.

This is using the standard oDBCore.Sync() (Without DoEvents also)

You could try experimenting by setting your SyncRate value to between 30 to 50 to see how the performance usage is affected.

Paul.

Cypher Zero
18
Years of Service
User Offline
Joined: 11th May 2006
Location:
Posted: 8th Jan 2007 03:31
Given that I'll just assume it's my computer, oh well!
Thanks anyway =o)
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 8th Jan 2007 11:03
Would I be wrong in saying the command was Sync sleep?

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 8th Jan 2007 16:04
If you put

Thread.Sleep(1)

in your loop it should throttle back a bit

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net

Login to post a reply

Server time is: 2024-11-19 10:30:48
Your offset time is: 2024-11-19 10:30:48