Page 1 of 1

mod preformance

PostPosted: Sat Jun 16, 2012 05:52
by jwlockhart
Just a quick question, which seems to cause the least dent in performance: many small mods or a single large one? I have used both, but I cannot seem to decide which effects things more.

PostPosted: Sat Jun 16, 2012 10:02
by Calinou
I think a single large mod will have less impact on performance than many small mods.

PostPosted: Sat Jun 16, 2012 11:41
by RabbiBob
I believe there would be more memory for small mods used due to the node namespace requirements (unique per lua mod script) and needing to hold them in the table, but that would be bytes.

Also, I suspect that if you had many small mods equal in code and function to one large mod, you would only see a minimal impact at load time (time to open and import the mod files). After that, the code is in memory and if the functions are 1:1, the system load is the same.

Programming efficient code is the key in either scenario.

What have you tried in testing?

PostPosted: Sat Jun 16, 2012 17:48
by jwlockhart
Thanks for the reply’s. From usage, I have found some of the larger mods such as BUILDING-BLOCKS and MOREBLOCKS seem to be harder on my system than several small ones. I normally run DOORS, MOREORES, GATES, and the SANDSTONE ones along with a few that I have made for personal use.

Personally, I like Calinou's mods, their code is usually clean and organized and other than an occasional correction (missed comma's) the code works well and seems to have minimal impact on performance (around a loss of 1FPS which is what I lose with the full set of mods that I am running).

In any case, the mod that I am working on is intended to add bands of other types of stone at various depths (not too original) and the idea is to make some of them ore bearing, for which I am looking somewhat at the ore generation mods for clues, and isolating single ores (to test between the methods of ore generation.)

PostPosted: Sat Jun 16, 2012 18:34
by Calinou
jwlockhart wrote:Thanks for the reply’s. From usage, I have found some of the larger mods such as BUILDING-BLOCKS and MOREBLOCKS seem to be harder on my system than several small ones. I normally run DOORS, MOREORES, GATES, and the SANDSTONE ones along with a few that I have made for personal use.

Personally, I like Calinou's mods, their code is usually clean and organized and other than an occasional correction (missed comma's) the code works well and seems to have minimal impact on performance (around a loss of 1FPS which is what I lose with the full set of mods that I am running).

In any case, the mod that I am working on is intended to add bands of other types of stone at various depths (not too original) and the idea is to make some of them ore bearing, for which I am looking somewhat at the ore generation mods for clues, and isolating single ores (to test between the methods of ore generation.)


Heh, don't write mod names in capitals. :P
"their code is usually clean and organized and other than an occasional correction (missed comma's)"
It is quite deprecated and not very proper I know; I'm not really caring about missing commas.

PostPosted: Sat Jun 16, 2012 19:45
by jwlockhart
Gotcha on the capitalization of mod names.

Yes, it needed some touch up, but it is one mod that I have enjoyed using. Eventually I will get the varied pieces that I am working on together into one mod and post it.