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 / Really slow draw rates..

Author
Message
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Dec 2013 20:14
What FPS are people getting in their GDK programs? The following code for me runs at 60fps, whereas in DBPro, it'll run in the hundreds.




The Tall Man
10
Years of Service
User Offline
Joined: 16th Nov 2013
Location: Earth
Posted: 13th Dec 2013 20:16
I've never used DBPro, but I've never had DarkGDK exceed 60 FPS, ever! I'm sure there's a limit imposed somewhere. My LCD monitor only does 60 anyway.
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 13th Dec 2013 20:20 Edited at: 13th Dec 2013 20:20
DarkGDK sets the vsync flag by default.

Change this:


to this:
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Dec 2013 20:22 Edited at: 13th Dec 2013 20:24
Quote: "DarkGDK set the vsync flag by default."


Quote: "Error 1 error C2660: 'dbSetDisplayMode' : function does not take 4 arguments"


My version of GDK must be very outdated.... I'm not using the TGC version from the official installer, but I'm using MadBits version he posted online not too long ago.


EDIT: nevermind, I didn't read the dbSetDisplayModeVSync, my bad! up to 200fps with that code. Better, but still slower than I'd hoped.

The Tall Man
10
Years of Service
User Offline
Joined: 16th Nov 2013
Location: Earth
Posted: 13th Dec 2013 20:22 Edited at: 13th Dec 2013 20:33
I just tried something. If the window is minimized, when I bring it back up, I can see briefly that my framerate was in the mid 200s!

Edit: With turning the V-sync off, I can get 190 while the screen's up now. Cool!


Thanks guys! Now I can rate my games' performance better as I go!
The Tall Man
10
Years of Service
User Offline
Joined: 16th Nov 2013
Location: Earth
Posted: 13th Dec 2013 20:58 Edited at: 13th Dec 2013 21:11
Mobiius,

One of the last revisions made on the source code (r97) really slowed down the frame-rate. It was a major rewriting of the code for the camera module. So unless MadBits went in and fixed it, or deleted that revision like I did, it's gonna run significantly slower, by at least a 1/3.

If you wanna try my version of the libraries from the source code with the faulty revisions deleted, I shared it here about a week ago:

http://forum.thegamecreators.com/?m=forum_view&t=209001&b=22

It is the source code, but there's another archived .zip I put in there that contains just the compiled libraries with their includes. I don't know if it will work with vs2012 as it is (I used vs2008), but you could try it. If the compiler complains, you could try using MadBits' includes with my libraries. If he didn't change too much they ~should~ be compatible.

P.S. Keep his Sparky's library though. And note that the DarkAI commands probably won't work with my libraries. Alternatively, you could try substituting just his camera library file with mine. That would probably fix the slow-down for you - again if vs2012 was willing to link to it okay.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 13th Dec 2013 21:25
I might give it a try later.. Off to watch Thor 2.

Login to post a reply

Server time is: 2024-04-18 11:42:43
Your offset time is: 2024-04-18 11:42:43