mod preformance

jwlockhart
Member
 
Posts: 12
Joined: Thu Jun 07, 2012 20:47

mod preformance

by jwlockhart » Sat Jun 16, 2012 05:52

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.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sat Jun 16, 2012 10:02

I think a single large mod will have less impact on performance than many small mods.
 

User avatar
RabbiBob
Member
 
Posts: 335
Joined: Sat Jan 28, 2012 22:40

by RabbiBob » Sat Jun 16, 2012 11:41

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?
 

jwlockhart
Member
 
Posts: 12
Joined: Thu Jun 07, 2012 20:47

by jwlockhart » Sat Jun 16, 2012 17:48

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.)
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sat Jun 16, 2012 18:34

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.
 

jwlockhart
Member
 
Posts: 12
Joined: Thu Jun 07, 2012 20:47

by jwlockhart » Sat Jun 16, 2012 19:45

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.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron