Constructor

new(driver:Driver)

Variables

@:value(0)read onlybufferCount:Int = 0

@:value(0)read onlytexMemory:Float = 0

@:value(0)read onlyusedMemory:Float = 0

Methods

@:access(h3d.Buffer)allocStats():Array<{tex:Bool, stacks:Array<{stack:String, size:Int, count:Int}>, size:Int, position:String, count:Int}>

Return statistics for currently allocated buffers and textures. Requires -D track-alloc compilation flag

cleanManagedBuffers():Void

Clean empty (unused) buffers

@:value({ force : true })cleanTextures(force:Bool = true):Bool

dispose():Void

dynamicgarbage():Void

Call user-defined garbage function that will cleanup some unused allocated objects. Might be called several times if we need to allocate a lot of memory

init():Void

stats():{totalMemory:Float, textureMemory:Float, textureCount:Int, managedMemory:Int, freeManagedMemory:Int, bufferCount:Int}