Hi,
i suggest to change image cropping on startup from happening every time to happen only if game is updated, mods installed/changed or settings changed and cache the cropped images.
This will accelerate the startup immensly.
Cu, steinio.
Cropping images only if something has changed.
Moderator: ickputzdirwech
Re: Cropping images only if something has changed.
Agreed, and hopefully only the sprite sheets that are affected would be reloaded (i.e. not all of them reload if a mod changes only one sprite).
Re: Cropping images only if something has changed.
Huh? That's how it already works.steinio wrote:i suggest to change image cropping on startup from happening every time to happen only if game is updated, mods installed/changed or settings changed and cache the cropped images.
Re: Cropping images only if something has changed.
In practice, rebooting the program takes just as long when toggling mods as it does to load the rest of the game.
Re: Cropping images only if something has changed.
Well, image cropping could be a translation error or intended but it seems, the loading images phase eats startup time and not the cropping.
Re: Cropping images only if something has changed.
I think the cropping is already done that way. Maybe you meant the atlas creation and compression (if you have that enabled)? That is a long load time, for me. I don't know the first thing about how that works, if it's something they can set to do once or not...I'd love it if it could be done once though.
Re: Cropping images only if something has changed.
Go into the config file, enable cache-sprite-atlas and you'll have your wish. The cache file is around 1GB in size which is why it's not a normal option I think.Jon8RFC wrote:I think the cropping is already done that way. Maybe you meant the atlas creation and compression (if you have that enabled)? That is a long load time, for me. I don't know the first thing about how that works, if it's something they can set to do once or not...I'd love it if it could be done once though.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Cropping images only if something has changed.
I edited the wrong line initially, but this is great, thank you! It chops out the first part of creating, which saves a chunk of time. If it saved the compressed atlas, that would cut out the other chunk of time too. This is great so far though.Bilka wrote:Go into the config file, enable cache-sprite-atlas and you'll have your wish. The cache file is around 1GB in size which is why it's not a normal option I think.Jon8RFC wrote:I think the cropping is already done that way. Maybe you meant the atlas creation and compression (if you have that enabled)? That is a long load time, for me. I don't know the first thing about how that works, if it's something they can set to do once or not...I'd love it if it could be done once though.