Vizard 8 » Command Index » Vizard modules » viz » <viz>.clearCache
8.1

<viz>.clearCache

This command will clear Vizards object cache

<viz>.clearCache(  
mode = viz.NODE_CACHE | viz.TEXTURE_CACHE  
name = ''  
)  
mode = viz.NODE_CACHE | viz.TEXTURE_CACHE
Can be a combination of the following cache flags:

Cache flags

viz.NODE_CACHE

Clear node objects from cache.

viz.TEXTURE_CACHE

Clear texture objects from cache.

viz.SOUND_CACHE

Clear sound objects from cache.

name = ''
If specified, only objects with the specified filename will be removed from the cache. Otherwise, all objects will be removed.

Remarks

This command will clear Vizards object cache, which includes models and textures. Clearing the object cache will free up memory

Return Value

None