BufferContext
from panda3d.core import BufferContext
- class BufferContext
Bases:
Bases:
SavedContext
This is a base class for those kinds of
SavedContexts
that occupy an easily-measured (and substantial) number of bytes in the video card’s frame buffer memory or AGP memory. At the present, this includes most of theSavedContext
types:VertexBufferContext
andIndexBufferContext
, as well asTextureContext
.This class provides methods for tracking the video memory utilization, as well as residency of each object, via PStats.
Inheritance diagram
- property active bool
Returns the active flag associated with this object. An object is considered “active” if it was rendered in the current frame.
- property data_size_bytes int
Returns the number of bytes previously reported for the data object. This is used to track changes in the data object’s allocated size; if it changes from this, we need to create a new buffer. This is also used to track memory utilization in PStats.
- getActive() bool
Returns the active flag associated with this object. An object is considered “active” if it was rendered in the current frame.
- static getClassType() TypeHandle
- getDataSizeBytes() int
Returns the number of bytes previously reported for the data object. This is used to track changes in the data object’s allocated size; if it changes from this, we need to create a new buffer. This is also used to track memory utilization in PStats.
- getModified() UpdateSeq
Returns the
UpdateSeq
that was recorded the last time mark_loaded() was called.
- getResident() bool
Returns the resident flag associated with this object. An object is considered “resident” if it appears to be resident in texture memory.
- property modified UpdateSeq
Returns the
UpdateSeq
that was recorded the last time mark_loaded() was called.
- property object TypedWritableReferenceCount
Returns the associated object.