VertexDataBook

from panda3d.core import VertexDataBook
class VertexDataBook

Bases:

A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects.

Inheritance diagram

Inheritance diagram of VertexDataBook

__init__(block_size: int)
alloc(size: int) VertexDataBlock

Allocates and returns a new VertexDataBuffer of the requested size.

countAllocatedSize() int

Returns the total size of all bytes allocated within pages owned by this book.

countAllocatedSize(ram_class: RamClass) int

Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.

countTotalPageSize() int

Returns the total size of all bytes owned by all pages owned by this book.

countTotalPageSize(ram_class: RamClass) int

Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class.

getNumPages() int

Returns the number of pages created for the book.

saveToDisk()

Writes all pages to disk immediately, just in case they get evicted later. It makes sense to make this call just before taking down a loading screen, to minimize chugs from saving pages inadvertently later.