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 / Black Screen??

Author
Message
StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 16th Dec 2009 18:24 Edited at: 16th Dec 2009 18:24
Hi Guys,

I have just one small question i hope someone can help me with it.

My game is working and drawing well, but when i move the "Game Window" (Form) with my mouse it turns black and FPS drops down to 0 when i stop moving the "Game window" it draws my game back and my FPS incresses back to normal.

why does this happen?

Thanx in advance.
Caleb1994
15
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 16th Dec 2009 19:04
Not sure the exact reason, but it's not a error in your game. It has to do with windows and the way it's being drawn. essentially, the app pauses when you are moving the window.

Come to think of it. There should be some way to set dgdk to keep running even when it is doing this( i know in dbp there's a setting that says "Keep running even when it isn't the active window" or something) That might do it. idk

New Site! Check it out \/
StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 16th Dec 2009 20:40
Caleb1994 Thank you for ur reply,

I also think it pauses the game when you move the window
so now i need to know how can i fix it , i try to read the help files but so far no luck...
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 16th Dec 2009 20:51 Edited at: 16th Dec 2009 21:03
You can't fix it:

A classic Windows message loop with DirectX included looks like this:



This is similar if not the same to how DarkGDK handles windows messages.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 16th Dec 2009 20:58
Bran flakes91093 thank you also for ur reply.

Bad news for me then that i can't fix this! It forces me now to use the function dbSetWindowOff() and i would hate that because it looks good with window
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 16th Dec 2009 23:19
Why do you need it to keep running when you are moving the window?
Games are hard enough without a moving window lol.
StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 17th Dec 2009 12:31
Because if someone moves the window while playing it will return blackscreen and everything will stop untill the player releases the mouse button.

Let say... i never have seen something like this with games that i play.
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 17th Dec 2009 22:45
like all games do that in windows

Login to post a reply

Server time is: 2024-10-01 20:24:12
Your offset time is: 2024-10-01 20:24:12