public class SoCpuBufferObjectCache extends Inventor
SoCpuBufferObject
objects.
SoBufferObject
creates an instance of this class that is primarily used for the LDM tile cache (see SoLDMGlobalResourceParameters
for more information). The buffer object cache can be accessed using the SoBufferObject
static method getBufferObjectCache. Default size is 50 or the value of OIV_BUFFER_OBJECT_CACHE_SIZE.
This class was added in Open Inventor 8.5.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
flush()
Remove all unused buffers (ref count = 0) from the cache.
|
long |
getSize()
Return the max size of the cache (number of buffers).
|
void |
resize(long newSize)
Resize cache to the given size.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public long getSize()
public void resize(long newSize)
newSize
- new size for the cache (number of buffers). public void flush()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com