How to Minimize RAM Usage on Android

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
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

How to Minimize RAM Usage on Android

#1 Post by tiya_nofurita »

I don't know if this is only my Android device problem with low RAM (only 512 MB on total, tha "real" RAM must be lower than that) or my App is really "memory-consuming". Whenever I start my game, the App closed itself with a warning of "low memory". I just realized this is happened when I tried to run the "upgraded" version of my App with customized GUI in all aspect (including text box, NVL box, and backlog), but when I run the previous version (still with Ren'Py's default) it working just fine.
Is there any minimum standard (regarding the RAM) to run an App on Android, especially for Visual Novel? And is there any way to "minimize" the RAM usage on my App? I tried to run Visual Novel with more complicated looking than mine (for the interface, and there is animated BG like ATL too) before and it went just fine. Or maybe I should consider buy another Android device with higher RAM :/ This is irritating because I can't test my VN on the next project. Thank you for your help :)

This is a comparison the previous version with Ren'Py default textbox.

Image

and the "upgraded" version with customized textbox (hell, it still looks "simple" for me)

Image
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: How to Minimize RAM Usage on Android

#2 Post by PyTom »

If you want, you can try to reduce ram usage by lowering config.image_cache_size back down to 8.
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

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How to Minimize RAM Usage on Android

#3 Post by tiya_nofurita »

PyTom wrote:If you want, you can try to reduce ram usage by lowering config.image_cache_size back down to 8.
Eh? Where can I find that syntax?
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: How to Minimize RAM Usage on Android

#4 Post by PyTom »

sorry,

Code: Select all

init python:
     config.image_cache_size = 8
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

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How to Minimize RAM Usage on Android

#5 Post by tiya_nofurita »

I can put it wherever I want, right? Thank you, I'll try.
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

Post Reply

Who is online

Users browsing this forum: Bing [Bot]