AndrewIRL wrote: βSat Dec 28, 2019 10:48 am Startup time - Data Cache
Sounds awesome, would love to see a speedup in modded games. With the wrong settings in:
https://mods.factorio.com/mod/WideChests
eg 255 wide by 255 high chests allowed
the game startup time can be as long as 20-30 minutes. Not seconds, that's not a typo, minutes.
Code: Select all
Approximation for total memory usage is: "20 x N x N x M x M" bytes, where N is max width and M is maximum height. Couple of examples of memory usages if max width and height is set to same number:
N=42 (default) => 62MB
N=100 => 2GB
N=256 => 85GB
N=1000 => 20TB
I wonder where the speed-up is occurring. If the cache was one big block of graphics, that wouldn't compress very well and may need gigabytes on disk. If it was just optimized offsets/pointers (like defragmenting), that makes sense. A command-line parameter which only generates the cache could be useful, so the game doesn't need to be fully started and the cache can be generated at any time (for the super modders, generate the cache on a schedule when you're sleeping and it'd be ready every morning!). Hmmmm if we know where the cache is stored, one could back it up or even share it for different mod/version configurations. Couldn't share if there were hardware details needed, but backing it up could let you could add or remove mods, and if there was a matching cache already, use that instead of recalculating.