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 Professional Discussion / DB compile .exe file size reduction: Is it a priority list of the db dev team?

Author
Message
Tag
22
Years of Service
User Offline
Joined: 8th Feb 2003
Location:
Posted: 16th Feb 2003 09:06
wow... i compiled a simple .exe and its around 2 mb.

not even a splash screen. or even the first stage of something.

It made me wonder what if im making a medium size game. would it be around 10mb .exe

Is the db team working on it, i meant making the exe smaller, by either slicing the exe or thru dlls, or even runtimes.


What improvements are there when patch 4 or 5 will be released concerning .exe file size
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 16th Feb 2003 09:52
None, as far as I know.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2003 12:20
The problem is that DBP compiles in the entire core library when you need just one function from it.

I think it is an issue but killing the bugs / stability and faster speeds are DBS' main priority right now.

NOBODY has a forum name as stupid as Darth Shader. I do.
Tag
22
Years of Service
User Offline
Joined: 8th Feb 2003
Location:
Posted: 16th Feb 2003 18:03
hmmmm what exactly do u mean when u say core library?

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2003 19:37
the CORE dll covers all of DBPs basic functions, ie all of the commands that are in the CORE catagory in the help files.

A DBP app consists of:

1) Compiled executable...
2) ... calling DBP DLLs which are built into the executable and extracted at runtime.

NOBODY has a forum name as stupid as Darth Shader. I do.
rapscaLLion
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 16th Feb 2003 19:40
Well, size isn't an issue for me, so I hope they get to bug squashing first, trying to change how large the final exe is will probably cause more problems at this point in time... And I don't think your game exe will reach 10 megs, unless you pack media into it as well.

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
rapscaLLion
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 16th Feb 2003 19:42
Oops, sorry, accidently pressed tab to start a new paragraph, not realizing it switched to the post reply button

Anyway, Patch 4 is 3D and pipeline only I believe, patch 5 is more bug fixes, and I heard something about the terrain commands but I'm not sure. I hope size isn't their priority right now...

Can you be more specific about the prog you compiled? What did it do, did you include any media with it, etc.

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
the_winch
22
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 16th Feb 2003 19:57
Have you tried an executable compressor such as
http://upx.sourceforge.net/

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2003 20:46
that reminds me... DBP executables compress extremely well, so file size isn't too big an issue.

NOBODY has a forum name as stupid as Darth Shader. I do.
UberTuba
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 16th Feb 2003 21:35
When you compile the exe, it includes every function in db.
This means that the remaining bits of the .exe are just function calls,taking up very little space. So in fact I doubt the file size would reach even 4mb, unless it had attached media, in which case any file size issues would be
entirely under your control.

Life is a terminal disease.
You never survive it.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 16th Feb 2003 22:38
"When you compile the exe, it includes every function in db."

That only applies to DBC. In DBP it only includes the libraries from which you have used one or more functions. Eg the BSP library is only included if you use any BSP functions and so on.

NOBODY has a forum name as stupid as Darth Shader. I do.
UberTuba
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 19th Feb 2003 20:04
Oh. well i'd be suprsided if it reached 4 megs anyway.

Life is a terminal disease.
You never survive it.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Feb 2003 22:02
To give you an idea, my game is currently 3.46 megs as the compiled exe but it zips down to 1.5 megs or about that - which is quite unusual for an executable.

NOBODY has a forum name as stupid as Darth Shader. I do.

Login to post a reply

Server time is: 2025-05-18 22:56:06
Your offset time is: 2025-05-18 22:56:06