Hello everyone,
I thought I'd finally organize my game its source by making multiple folders to make things alot easier to find for me or to add new stuff whenever I feel like it.
Before, the source compiling took about 3 minutes on a Phenom quadcore, which is considerably long and it'd turn to "Not Responding".
Well then, I decided to remove every unused/not needed piece of coding, art and icons, which resulted in a compile time of 7 seconds.
Well then I thought, why not reorganize it while I am at it?
I made one folder, called Programming where all the coding files go. And in that folder there are multiple folders, such as: Exams, Jutsus, Libraries, Main, NPC, Organization, Power and Training. And then some of those folders have some more sub-folders.
But reorganizing it like that, does that really increase my compile time?
And if so, is there anything I can do, without screwing up my newly done reorganization?
Kind regards,
Sokkiejjj
ID:151527
![]() Jun 25 2010, 4:16 am
|
|
![]() Jun 25 2010, 8:48 am
|
|
Disable "Automatically set FILE_DIR for sub-directories" in "Build>Preferences for [project name]", it should speed up. Also big PNG/BMP/JPG files takes long to compile too.
|
Ripiz wrote:
Disable "Automatically set FILE_DIR for sub-directories" in "Build>Preferences for [project name]", it should speed up. If you have that disabled it doesn't find resources in folders. Unless you plan on manually including them all. |
What are you implying? There isn't really any truly manual resource file including in DM, yet.
Without FILE_DIRs defined, you just have to write e.g. 'icons\subfolder\icon.dmi' instead of 'icon.dmi'. It's faster because the compiler goes straight to the file instead of searching for it in every FILE_DIR-defined folder. Of course, it's also possible to only manually #define FILE_DIR for one or a couple of folders, letting the compiler skip non-resources folders and as such. |
If you use #define FILE_DIR it'll still look in several folders for file, while exact path ('icons\subfolder\icon.dmi') doesn't have any other folders to look in.
|
Ripiz wrote:
If you use #define FILE_DIR it'll still look in several folders for file Not quite. Do read the FILE_DIR definition's reference entry. FILE_DIR isn't something you #define only once. It's typically defined multiple times, each time for a different folder. Have a look in your DME file. You are confused because of Dream Maker's "Automatically set FILE_DIR" setting, which automatically #defines FILE_DIR for every subfolder for you (inside the DME). However, that isn't the brunt of the feature and is only a very handy shortcut. You can always turn it off and then manually #define FILE_DIR only for folders of your choosing and not for others (like those containing only text files), hence I stated it in the last sentence of my previous post. |