webgl-memory


To install, run:

haxelib install webgl-memory 1.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

WebGL-Memory

  • 在OpenFL项目中尝试记录BitmapData的数量,并模拟计算BitmapData的GPU使用量,通过弱引用标记GPU内存是否已被释放。
  • Attempt to record the quantity of BitmapData in the OpenFL project and simulate the GPU usage of BitmapData, using weak references to mark whether GPU memory has been released.

Use

You need to install the library first:

haxelib git webgl-memory https://github.com/rainyt/webgl-memory

Add to project.xml:

<haxelib name="webgl-memory" />

Read the GPU memory usage:

var gpuMemory = this.stage.context3D.totalGPUMemory;
trace('GPU Memory: $gpuMemory');
Contributors
rainy
Version
1.0.0
Published
2 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂