Static methods

staticenableTrackAlloc(?b:Bool):Void

Constructor

new(driver:Driver)

Variables

@:value(1024)autoDisposeGpuFreeMB:Float = 1024

The amount of free memory we want to keep on our GPU to allow swapping.

@:value(3.0)autoDisposeKeepTime:Float = 3.0

How much time a texture should be kept into memory if it's not used.

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

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

Methods

@:access(h3d.Buffer)allocStats():Array<AllocStats>

Return statistics for currently allocated buffers and textures. Requires call MemoryManager.enableTrackAlloc() before allocations.

beginFrame():Void

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

dispose():Void

dynamicerrorOutOfMemory():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

@:value({ megas : false })stats(megas:Bool = false):{totalMemory:Float, textureMemory:Float, textureCount:Int, otherMemory:Float, maxMemory:Float, bufferMemory:Float, bufferCount:Int}