View unanswered posts | View active topics It is currently Tue Dec 24, 2024 6:50 pm



Reply to topic  [ 4 posts ] 
 Speeding up CC loading 
Author Message
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Speeding up CC loading
A theory I tested recently - would consolidating all inis into a single, massive ini allow for faster loading?
The answer is yes. Definitely.

I tested this by shoving everything loaded in "Base.rte/Index.ini" and everything that was loaded using "IncludeFile" into a single ini (in correct load order) and got roughly 2-2.5 second (measured with a stopwatch :/ ) decrease in loading time.
I run Win7 x64 on i5-6600k @ 3.5GHz, 16Gb 2.4Ghz RAM on an H170 chipset motherboard.
Loading speed gains may vary depending on hardware.

The speed increase is gained by minimizing scan/read operations CC has to do while loading.
If you have a mod that has a large amount of ini files, consolidating them into a single ini once you're done with it and plan to release will speed up the loading for you and whoever downloads your mod.
Depending on the amount of inis and the amount of lines gains may not be much, but every millisecond counts.
All your original inis can be kept in their places without interference.

The consolidated ini is standalone. All you need to do it uncomment everything in Index.ini and include it, like so:
Code:
DataModule
   ModuleName = Base Set
//   IncludeFile = Base.rte/Materials.ini
//   IncludeFile = Base.rte/Icons.ini
//   IncludeFile = Base.rte/Sounds.ini
//   IncludeFile = Base.rte/Effects.ini
//   IncludeFile = Base.rte/Ammo.ini
//   IncludeFile = Base.rte/Devices.ini
//   IncludeFile = Base.rte/Actors.ini
//   IncludeFile = Base.rte/Loadouts.ini
//   IncludeFile = Base.rte/Deployments.ini
//   IncludeFile = Base.rte/Scenes.ini
//   IncludeFile = Base.rte/Activities.ini
//   IncludeFile = Base.rte/GlobalScripts.ini
     IncludeFile = Base.rte/BASE.ini


This base doesn't have any changes made except placeable crabs in build mode.
All uncommented code was removed to (very slightly) speed things up even more.
96542 lines, 2.07Mb

A tool to simplify this process to a few clicks is being worked on because doing this manually can be pretty tedious.
I'll update this thread once it's available.


Attachments:
File comment: Extract contents to Base.rte
BASE.zip [120.34 KiB]
Downloaded 839 times
Thu Jan 31, 2019 9:42 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Speeding up CC loading
Similar work done here by MLC and Duh


Thu Jan 31, 2019 10:48 pm
Profile
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post Re: Speeding up CC loading
Welp, guess I didn't do my homework.
Guess this can be deleted then, it doesn't bring anything new to the table, and here I thought I made a breakthrough lol.

Should make that thread a sticky across all boards cause it's right there under my nose and I missed it. MLC's tool is great.
Weegee also whooped one up but I guess we won't be needing it.


Thu Jan 31, 2019 11:17 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Speeding up CC loading
The loading speed boost is entirely because CC's text drawing is very slow. If you reduce your screen size (so that less text can be printed) loading is sped up significantly, no matter how many RTEs or files you're loading.


Sun Feb 24, 2019 11:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.029s | 14 Queries | GZIP : Off ]