Hi, maybe this question is for the core-team, but I am open to any suggestion or experience:
my game is composed of many lua files (approx 50).
This means that loading all of these require at least 50 file open/read/close iterations at app start. Am I right?
I was wondering: if I merge all these files in one single file ( main.lua) respecting the call order, should be possible to improve loading time? (Either if it's bigger it would be only one file to open/load/close, plus the other "not mergeable" files like png, json...).
Can you think of any side effect doing this? Is this a wild guess and you already know a reason why there would be no better performance?
I'd like to make a test and write an app to merge files. It should read from a gideros project file, and export a "merged gideros project" with the same folder structure, but only one lua file to load:
do you have any suggestion on how to preserve dependencies/call order if I read the gideros project file to use it as a list of the files to merge together?
thank you
Comments
Personally I doubt it would make much difference to performance but it's worth trying. The one where it might help is Android since this has no native file system (if I understand it) and files have to be extracted from the APK.
Likes: pie
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975