Static methods

staticenableTrackAlloc(?b:Bool):Void

Constructor

new(driver:Driver)

Variables

@:value(60)autoDisposeCooldown:Int = 60

@: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

@: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

getQuadIndexes(vertices:Int):Indexes

getTriIndexes(vertices:Int):Indexes

init():Void

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