Page 1 of 1
Cropping images only if something has changed.
Posted: Wed Mar 14, 2018 5:01 pm
by steinio
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.
Re: Cropping images only if something has changed.
Posted: Thu Mar 15, 2018 6:42 pm
by nickcombs
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.
Posted: Thu Mar 15, 2018 6:46 pm
by posila
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.
Huh? That's how it already works.
Re: Cropping images only if something has changed.
Posted: Thu Mar 15, 2018 7:50 pm
by nickcombs
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.
Posted: Mon Mar 19, 2018 4:37 pm
by steinio
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.
Posted: Tue Mar 20, 2018 12:21 am
by Jon8RFC
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.
Posted: Tue Mar 20, 2018 7:21 am
by Bilka
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.
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.
Re: Cropping images only if something has changed.
Posted: Tue Mar 20, 2018 8:16 am
by Jon8RFC
Bilka wrote: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.
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.
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.