Skip to content

Commit

Permalink
Document resource cache unloading
Browse files Browse the repository at this point in the history
  • Loading branch information
martindemello authored and lordmauve committed May 6, 2019
1 parent 28ddbf2 commit ac42f1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ These will not work::
my-cat.png
sam's dog.png

The resource loader caches loaded images and sounds. To clear the cache (for
instance, if you are running into memory issues), use the `unload()` and
`unload_all()` functions.

Example::

cow = Actor('cow')
loader.images.unload('cow') # clears the cache of cow.png
loader.images.unload_all() # clears all cached image files


Images
''''''

Expand Down

0 comments on commit ac42f1b

Please sign in to comment.