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 / Exe runs slower than the actual editor compiles it?

Author
Message
dab
21
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 27th Jul 2005 00:25
When I was making my puzzle game for the puzzle compo, the game was running smooth. When I built the exe, it was choppy as if I was watching Direct TV in the heavy rain. I'm trying to figure out why my game slowed down after it became an exe. Does Dark Basic use hardware eccelators? Or am I just dumb. (I'm using DBC).

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
Leeorg
21
Years of Service
User Offline
Joined: 5th Jul 2005
Location:
Posted: 27th Jul 2005 01:29
I believe there has been a post like this before - can't remember the answer though - have you tried searching for similar posts?
Drew Cameron
22
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 27th Jul 2005 04:38 Edited at: 27th Jul 2005 04:38
There is a reason for it, and it's not just you, but I'm not a techy kind of guy so I couldn't tell you what it is.

This problem always annoyed me when I was on DBC, and there's nothing you can do about it really, sorry


Katie Holmes does not endorse D&C or Drew Cameron.
AndLabs
21
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 27th Jul 2005 05:10
It might be because of how much RAM you have in your system, or how many programs you're running. Please tell us how much RAM you have and what you ran with the EXE.

For the Software You Want, AMPERSAND LABORATORIES is the place!

Eddie B
21
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 27th Jul 2005 07:46
Well, I gues you'll have to take a deep look into the "how to speed up my game" topic

Don't look at my sig!
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 27th Jul 2005 09:58
If you compiled the game as a final draft, all of the media will be combined in the .exe, sort of like a .zip(obviously). So, it may be slower to execute than when on DarkEdit.exe


----------
Vote for Excelsis on the Puzzle Game Compo

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
dab
21
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 27th Jul 2005 10:33
Well, my pc has about 100 megs of ram, I never thought of it but IT could be the problem. I don't run any other programs when running it. I don't include any of the media in the exe, and uuhh, oh yah, I also ran it on other faster computers, (the most ram was 256) and it was still choppy. Although on the 356-er it had motiple programs open. So, I don't know. Think It could be my FPS? Think I could make that faster some how?

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 28th Jul 2005 08:00
Are you making a final draft or a regular .exe? If its a final draft, that may be the problem. So, you may need to compress your media.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
dab
21
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 29th Jul 2005 16:40 Edited at: 29th Jul 2005 16:58
Its a regular exe. I am thinking though that I should load files AFTER the menu comes up instead of when it comes up. I load half the files once it loads then it deletes them, and loads other files (when another level is loaded) I think I should do that for all levels.

edit: I finally did some reasearch through the "How to speed up my game" thing and found this.
Quote: "Sprites
As most of you probably already know, DBC's 2D commands are quite slow, in particular, the drawing commands and the Sprite commands.
Using these commands in high quantities can result in slowed Frame rates.

Why?
The drawing engine was never fully optimised to be it's best quality. But I'm sure there are some other factors along with that too that I am unaware of.

What can I do?
Try to limit your 2D operations.
One way around this problem, is to create Plains and texture them with the images, and use them like sprites. This will give you alot more speed and help to keep your program running smoothly."


The only problem is I don't know how to do this.

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
Metrion
21
Years of Service
User Offline
Joined: 8th Jul 2005
Location: In the darkest cave
Posted: 29th Jul 2005 18:19
Creating plain objects? That's not too hard... It's like this:

just replace the words in caps with your own values...

make object plain OBJECTNUM, WIDTH, HEIGHT
texture object OBJECTNUM (same as plain object), IMAGENUM

then, use the following command to position the plain texture on the screen.


So in the end, the code would look something like this:



I got this from DarkGUY's website: http://darkguy.redgaming.net/

Using the method described above and looking at DarkGUY's website, you can learn how to make lens flares as well!

Good luck!

Cheers,

Metrion

If practice makes perfect and nobody is perfect, then why practice?
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 30th Jul 2005 05:02
Yeah, I never use basic 2D sprites, I always use 3D plains to make the objects, you just texture the plains (as Metrion said) to make the objects appear 2D, and you can do this in combination with 3D to make a paper Mario type effect.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk

Login to post a reply

Server time is: 2026-07-10 12:38:02
Your offset time is: 2026-07-10 12:38:02