vaendryl / Sunrider

source code of the visual novel 'Sunrider'
http://sunrider-vn.com/
41 stars 21 forks source link

memory leak / OOM #138

Open vaendryl opened 9 years ago

vaendryl commented 9 years ago

http://steamcommunity.com/app/313730/discussions/0/598198173703519680/

maybe I should lower the image_cache_size down from 50 to something less huge.

DoumanAsh commented 9 years ago

Renpy caches a lot? Can we clean cache?

vaendryl commented 9 years ago

I've noticed by checking the task manager that the game uses a lot less ram when config.image_cache_size drops down to 8 and the game seems to run fine for me too. perhaps that's all that's needed.

DoumanAsh commented 9 years ago

I thin it would be good to re-configure it for battle. There is a lot of images, maybe not 50, but something more that 8

This is used to set the size of the image cache, as a multiple of the screen size. This number is multiplied by the size of the screen, in pixels, to get the size of the image cache in pixels.
vaendryl commented 9 years ago

like the part you quoted, setting it to 8 doesn't mean it only caches 8 images. it means it caches 8 screens worth which means 8 x 1080 x 1920 total pixels. I don't remember what the renpy default is but 50 is way much.

DoumanAsh commented 9 years ago

Default is 8