Browse Source

Fix track_alloc description in doc

-D track_alloc was moved to runtime function in bf45c519
Yuxiao Mao 7 months ago
parent
commit
9e37d78f79
1 changed files with 2 additions and 1 deletions
  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> {