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.

DarkBASIC Discussion / Slow built games - help?

Author
Message
Satchmo
20
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 10th Feb 2008 07:20
Hey guys, I have a problem.

Whenever I build a final game, it is unacceptably slow, hovers at about 25 fps, when I'm getting the full 60 in the editor, I built a blank exe that just prints the fps---still 25, any reason?

Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 10th Feb 2008 20:45 Edited at: 11th Aug 2010 22:40
Unfortunately, this is something of an known problem with DarkBasic classic executables (including and pre DB V1.13). However, It may been addressed in the recent DB V1.20 update. So you can try that when it's available. See Here.

Here's a few ideas that might help improve the feel of the game from an executable perform.

* Implement a timer based moved solution so game play isn't connected to the physical frame rate.

* Reduce the texture size as much as you can!. Will help in a couple of ways, it'll make your final game smaller (in memory and on disc) and it'll help your GPU prepare each texture quicker (the smaller the faster). This gives a performance improvement because DB (from what i can tell) doesn't cache common textures between render calls. In other words, it gives textures a real thrashing in memory, so by reducing the size you'll help the GPU deal with this thrashing better.

* if you attached media the EXE, then this can takes for it depack on slower systems.

* Disable Vsync (if possible)


Anyway, there's a huge thread on tips for improving speed around here somewhere.

Satchmo
20
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 10th Feb 2008 22:31
Even if I build a blank exe-no media, just prints the sync, it hovers at about 25 fps.

Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 10th Feb 2008 22:36
it may just be your computers slow...

Windows Is better than everything
Satchmo
20
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 10th Feb 2008 22:41
No, in the editor I'm getting 70 fps plus with my game, I can play soulhunter(dbc game) with a constant fps, I just don't see the problem.

Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 10th Feb 2008 22:43
dbc is interped it'll run a bit slower as an exe

Windows Is better than everything
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 10th Feb 2008 22:50
The editor isn't?

Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 10th Feb 2008 22:52
Maybe...and maybe not I don't know...
Quote: "Unfortunately, this is something of an known problem with DB classic executables (including and pre DB V1.13). "
but as he said it might be just a bug

Windows Is better than everything
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Feb 2008 01:04
@Satchmo

Instead of using fullscreen mode, try using windowed mode. On my machine I've noticed exes run at about the same speed that they do in the compiler when they are run in windowed mode.

The following script runs somewhere between 500 and 550 fps in the editor and between 160-170 fps when made into an exe (DBC 1.13 2002).



Now, adding the set window on command, it runs at about 450 in the editor and at between 440 and 450 as an exe. I think it slows down a bit in windowed mode in the editor because the screen depth goes up to 32 (the bitdepth of my desktop).



Enjoy your day.
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 14th Feb 2008 04:16
Quote: "The following script runs somewhere between 500 and 550 fps in the editor "


I got 710... Is that possible?

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 14th Feb 2008 07:54
Quote: "I got 710... Is that possible?"


Of course it's possible. I think the highest possible fps is 1000.
The figures I posted are from my computer - yours probably has a little more juice in terms of the processor speed and/or graphics card ability. My post is just to show the difference in speed from full screen to windowed mode.

Enjoy your day.

Login to post a reply

Server time is: 2025-06-04 02:10:04
Your offset time is: 2025-06-04 02:10:04