This would improve the game loading time a lot. When I left only few files in my newgrf.cfg (TTO set, ttd patch files)the game loaded in ~10 seconds, but with full config file it can easily go to ~2 minutes.
So, my suggestion is this:
If you have files A, B and C in your newgrf.cfg like this and none of the use the grfid FF FF FF FF.
A ! (a big file 5mb, this one is not loaded in any saved game)
B !
C
And this is what should happen:
1) Title screen doesn't use any of those files so they are not loaded yet.
2) You load a saved game with file B activated. TTDpatch loads that file.
3) You decide to start a new game, because you finished that saved game. Now TTDpatch will only load file C.
4) The file A was loaded zero times and the size of file A was 5mb, because we didn't load it, we saved some time.
Load GRFs only when they are needed
Moderator: TTDPatch Moderators
Load GRFs only when they are needed

In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
It's not possible. All files must be initialized first before any of them is activated. Therefore, once one file is activated (which happens when the title screen loads), no further files can be loaded.
The only thing I can suggest is that you make several newgrfw.cfg files, and select between them with the -Xn command line option, so you only load the one which you'll need in any one session.
The only thing I can suggest is that you make several newgrfw.cfg files, and select between them with the -Xn command line option, so you only load the one which you'll need in any one session.
- Redirect Left
- Tycoon
- Posts: 7419
- Joined: 22 Jan 2005 19:31
- Location: Wakefield, West Yorkshire
Aww, that's too bad. I think I'll just have to clean my newgrf.cfg of the unused grfs. And I checked the loading time it was 1 minute and 1 secondPatchman wrote:It's not possible.


In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
The "newgrfcfg" line does the same thing, but in ttdpatch.cfg.Captain_Kirk76 wrote:To make it simpler is it possible to add a switch into the Patch that you can use to switch between them insted of editing the comand lines.
Besides, even if it was possible to not load them, it's impossible to know whether it should activate without loading it. You wouldn't even know which GRFIDs correspond to which file, much less whether it's meant be active or not.Jezulkim wrote:Aww, that's too bad. I think I'll just have to clean my newgrf.cfg of the unused grfs. And I checked the loading time it was 1 minute and 1 secondPatchman wrote:It's not possible..
Well, if you could load only the action 8... but since it's not possible to load files after starting TTDP that'd be useless.Patchman wrote:You wouldn't even know which GRFIDs correspond to which file, much less whether it's meant be active or not.
But anyway, I got my loading time reduced to 15 seconds after cleaning


In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
Who is online
Users browsing this forum: No registered users and 5 guests