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 / Multithread complier

Author
Message
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 3rd Jul 2015 22:10
Is there somewhere a dbpro multithread compiler? My project is getting very big now (65k lines), and the official compiler, as works with 1 cpu core only, needs almost 3 minutes to compile everytime, which is very compromising as it slows down the developement as hell.
My laptop has an intel i7 quadcore, so if a multithread dbpro comliper exists I could do the job 4 times faster.
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 3rd Jul 2015 23:28
I am amazed you managed to compile 65k lines in 3 minutes lol.

I do not know of any way to speed up compile times without splitting the project in two or more executables (EG: server/client) or cutting down the length of code by using more scripting features and database features.

Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 3rd Jul 2015 23:58
is too much or too few 3 minutes?
SamKM
16
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 4th Jul 2015 01:32
I think I read in one of the FPS Creator source files that you can speed up compile times (and increase FPS) by going to the Compiler directory, opening setup.ini, and changing 'RemoveSafetyCode' and 'SafeArrays' to Yes and No respectively - not sure how much it actually helps, but hopefully a little

The code never bothered me anyway...
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 4th Jul 2015 02:46
mmmm and what will brake this? If we could know what these 2 functions do we could decide if doing that or not
Kuper
17
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 4th Jul 2015 03:35 Edited at: 4th Jul 2015 03:37
I have about 30k code lines - its take 30 sec to compile .
I dont know how to decrease it - every global array or function
increases it a bit . I use synergy editor v1.1 . It have
"precompiler list" Maybe you know how to used it? Maybe it's usable to precompile parts of the code ?

SamKM
16
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 4th Jul 2015 03:58 Edited at: 4th Jul 2015 03:59
I've had 'RemoveSafteyCode' set to Yes for ages now, honestly haven't noticed any new bugs or problems - setting SafeArrays to No is a little more annoying though - If you screw up with arrays (like trying to read element -1), instead of being helpful and giving you an error message, you instead get an 'Application has stopped working' crash - not so good for diagnosing stuff, but if you're not using lots of arrays, and you're careful with what you're doing, should be fine

Quote: " I use synergy editor v1.1 . It have
"precompiler list""


It'd be awesome if we could precompile stuff, but unfortunately I think the the precompiler list is is an unfinished feature in the editor for adding precompilers - compilers that run before the regular compiler, to change parts of your code and stuff. Could be wrong, but I think that's right, sorry

The code never bothered me anyway...
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Jul 2015 17:19
After adding the DBPro Compiler to the pre-compiler list,I get failed to load dba errors in the compiler a few times after clicking compile but it still compiles and the exe is working just click execute list build or run your exe..., try doing this and see if it makes any difference...

Are you using SSDs as well?

I wish there was more information about integrating DBPro with an editor... if there is some already, please do point us in the direction... I would love to work on a Visual Studio based editor... I once saw the page where you can download and use VS in such a way but sort of lost it now... not only that but I also wish I knew how to create a DBPro compiler...

Le Verdier
13
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 5th Jul 2015 18:27
Quote: "I also wish I knew how to create a DBPro compiler... "


I suggest the "Dragon book":

http://www.amazon.fr/Compilers-Pearson-International-Principles-Techniques/dp/1292024348/ref=sr_1_1?s=english-books&ie=UTF8&qid=1436109287&sr=1-1&keywords=compilers+principles+techniques+and+tools

Very interesting but not easy...

All hail the new flesh
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Jul 2015 23:34
Hmm...

Kingius Returns
11
Years of Service
User Offline
Joined: 17th Oct 2013
Location: UK
Posted: 10th Jul 2015 17:42
Port your code to Freebasic and use the DBPro plugin for it (search the forum to find it). Freebasic compiles like lightning.
KISTech
17
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 10th Jul 2015 18:47
Does a FreeBasic executable perform any faster in the end?
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 10th Jul 2015 19:12
I have tried to download freebasic, if i click main exe it just opens a dos Windows and close it in half of a second, can you provide some info on how to use our dbrpo project in freebasic?
Kuper
17
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 11th Jul 2015 08:38
@ KISTech
I get extra fps with bones animation. In other cases fps is approximately the same

Login to post a reply

Server time is: 2025-08-09 02:29:40
Your offset time is: 2025-08-09 02:29:40