documentation index ◦ reference manual ◦ function index

# renpy.cache_pin

Function: | renpy.cache_pin | (*image_manipulators):

When this is called with one or more image manipulators, it causes those image manipulators to be "pinned" into the image cache. This means that they will be loaded soon after the game begins, and will never be removed from the cache.

The usual use of this function is to preload images used in the game menu. Be careful with it, as it can increase Ren'Py's memory usage.

    init python:
        renpy.cache_pin("game_menu_root.jpg")

documentation index ◦ reference manual ◦ function index