Is it possible to have too many images?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Mimic Fox
Newbie
Posts: 13
Joined: Wed Aug 05, 2020 8:52 pm
Contact:

Is it possible to have too many images?

#1 Post 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.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Is it possible to have too many images?

#2 Post 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3784
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Is it possible to have too many images?

#3 Post 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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Is it possible to have too many images?

#4 Post by hell_oh_world »

20gb.png
20gb.png (4.68 KiB) Viewed 946 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.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3784
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Is it possible to have too many images?

#5 Post by Imperf3kt »

Ah okay that makes sense then. I wasn't sure which is why I asked. Thanks.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Is it possible to have too many images?

#6 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], downover