Page 1 of 1

Is it possible to have too many images?

Posted: Tue Jul 20, 2021 12:31 am
by Mimic Fox
Most of the sprites, backgrounds and CGs in my VN have some simple animation. And with ATL, every frame is an individual image. I don't really mind this but I'm wondering if it could potentially cause problems, with storage or something else, to have hundreds of images in one game.

Re: Is it possible to have too many images?

Posted: Tue Jul 20, 2021 2:05 am
by hell_oh_world
yes, you can. I've seen games with even 1k~2.5k images per update.
the biggest game I've seen was around 20gb.
the problems that it may entail really depend on how well the game was optimized, whether the devs compressed/downsized the images themselves, and other resources. otherwise, it could potentially slow down the load times as renpy caches the images that you have afaik.

Re: Is it possible to have too many images?

Posted: Tue Jul 20, 2021 9:07 am
by Imperf3kt
hell_oh_world wrote: Tue Jul 20, 2021 2:05 am the biggest game I've seen was around 20gb.
?
I thought Ren'Py had a soft upper size limit of 2GB.
A few examples to demonstrate what I mean:
viewtopic.php?f=8&t=36047&p=395814#p395814
viewtopic.php?f=8&t=44383&p=456896#p456896
viewtopic.php?f=51&t=47328&p=479362#p479362
viewtopic.php?f=8&t=49794&p=485823#p485823
viewtopic.php?f=8&t=30346&p=356252#p356252

@OP, you could use something like layered image, which would make your game more efficient, if most of your images use a common base you can simply store the rest of your variations as small images such as face happy, face sad, etc and cut your game's size down by a large percent.

Re: Is it possible to have too many images?

Posted: Tue Jul 20, 2021 9:34 am
by hell_oh_world
20gb.png
20gb.png (4.68 KiB) Viewed 1022 times
Played the game, it doesn't contain videos to make the game that large, only images.
And I think what you're talking about is the limit for apks on Android. Nonetheless, that issue is still solvable using expansion apks (stated in the link), if I understood it correctly.

Re: Is it possible to have too many images?

Posted: Tue Jul 20, 2021 7:19 pm
by Imperf3kt
Ah okay that makes sense then. I wasn't sure which is why I asked. Thanks.

Re: Is it possible to have too many images?

Posted: Wed Jul 21, 2021 12:16 am
by PyTom
The android limit is pretty hard, sort of downloading image files yourself. Everything else should be capable of dealing with unlimited images.

Note that there is a limit on how many images can be loaded into memory at once without running into problems - each pixel of the uncompressed image takes about 4 bytes of video memory and ram, so it's possible for systems to run out.