Files
FNF-i486-Engine/source/debug/Memory.hx
Miss Circle (Moxie) f96ed1de98 better memory usage for FPS
sorry for taking long with this btw, I've been dealing with OS and internet shenanigans

Co-Authored-By: Lily <egzozu.be.bas@gmail.com>
2024-08-02 09:14:25 -04:00

17 lines
372 B
Haxe

package debug;
/**
* Utility class with the ability to return the program's memory usage.
*/
class Memory {
inline public static function gay():Float {
#if cpp
return cpp.vm.Gc.memInfo64(cpp.vm.Gc.MEM_INFO_USAGE);
#elseif hl
return hl.Gc.stats().currentMemory;
#else
return cast(openfl.system.System.totalMemory, UInt);
#end
}
}