浏览代码

Fix track_alloc description in doc

-D track_alloc was moved to runtime function in bf45c519
Yuxiao Mao 7 月之前
父节点
当前提交
9e37d78f79
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      h3d/impl/MemoryManager.hx

+ 2 - 1
h3d/impl/MemoryManager.hx

@@ -256,7 +256,8 @@ class MemoryManager {
 	}
 
 	/**
-	 * Return statistics for currently allocated buffers and textures. Requires -D track-alloc compilation flag
+	 * Return statistics for currently allocated buffers and textures.
+	 * Requires call `MemoryManager.enableTrackAlloc()` before allocations.
 	 */
 	@:access(h3d.Buffer)
 	public function allocStats() : Array<AllocStats> {