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.

PureGDK / PureGDK vs DarkBasic Pro Speed

Author
Message
slyvnr
14
Years of Service
User Offline
Joined: 2nd Nov 2009
Location: Texas
Posted: 18th Jun 2010 04:10
I have both DarkBasic Pro and PureBasic.

I purchased the PureGDK so that I could do development in PureBasic as I am more comfortable with it.

I have converted the DarkBasic Quickstart Tutorial #6 - Huge Dungeons and have found the following to be true.

When running in Darkbasic I get around 1200-1400 fps on my system.

When running in PureBasic with PureGDK I get 20-25 fps (both 32 bit and 64 bit versions of PureBasic)

System is a Intel Core i7 CPU 860 running at 2.80GHz, 8gb Memory, Dual GTX 260 SLI-Linked nVidia graphics card, 1Tb System drive and 2Tb Raid 0 Data Drive.

Any ideas why there would be such a large performance difference between straight DarkBasic Pro and PureBasic with the PureGDK?

Thanks

Slyvnr

Slyvnr
Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 19th Jun 2010 00:00 Edited at: 19th Jun 2010 00:00
i think it might be something wrong with the code...?
post it
slyvnr
14
Years of Service
User Offline
Joined: 2nd Nov 2009
Location: Texas
Posted: 19th Jun 2010 01:59 Edited at: 19th Jun 2010 04:35
Here is the code.

It is basically the Quickstart 6 code ported directly to PureGDK. I add a few items but not much. You will need to download the Quickstart files for Darkbasic to get the media files.



Slyvnr
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 25th Jun 2010 03:45
Turn the debugger off.

Sepnon
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location: Brazil
Posted: 26th Jun 2010 00:32
lol

hey, sorry, i didnt see your reply
i think there's a bug on the site
AndyUK
21
Years of Service
User Offline
Joined: 2nd Apr 2003
Location: United Kingdom
Posted: 29th Jun 2010 20:50
lol@debugger
slyvnr
14
Years of Service
User Offline
Joined: 2nd Nov 2009
Location: Texas
Posted: 6th Jul 2010 18:20
OK here is an updated based on the above.

Turned Debugger off in Purebasic under Debugger->Use Debugger checkmark is gone (off).

Also went into Compiler->Compiler Options->Compile/Run and turned it off there also all debugger option checkboxes are unchecked.

When I run within Purebasic I still get 25-30fps
When I compile standalone Purebasic I get 28-32fps

When I run "original" code in Darkbasic Pro I get 1200-1400fps
When I compile standalone Darkbasic I am getting 1400-1500fps

The fps rates are as reported using the dbScreenFPS() function in PureGDK and the SCREEN FPS () call in Darkbasic Pro.

Could the dbScreenFPS be returning a "scaled" number or maybe the Darkbasic is using wrong precision?

I think the 1200-1400fps under Darkbasic seems to be high. Although the image is flicker free and very very smooth.

I have also tried both on a slightly different system (AMD Athlon x2)

The Purebasic speed is the same @ 25-30fps while the Darkbasic Pro speeds dropped to 120-150fps on the slower system.

Really wondering if maybe the fps rate reported under Darkbasic is incorrect.

Not sure why the speed difference. There is a noticeable "flicker"/"delay" under the Purebasic version but not under the Darkbasic Version.

Slyvnr

Login to post a reply

Server time is: 2024-04-24 04:57:35
Your offset time is: 2024-04-24 04:57:35