vram counter
This commit is contained in:
@@ -29,7 +29,7 @@ class Options
|
||||
public static var splashesEnabled:Bool = true;
|
||||
public static var hitWindow:Float = 250;
|
||||
public static var framerate:Int = 120;
|
||||
public static var gpuOnlyBitmaps:Bool = true;
|
||||
public static var gpuOnlyBitmaps:Bool = #if mac false #else true #end; // causes issues on mac
|
||||
|
||||
public static var lastLoadedMod:String = null;
|
||||
|
||||
|
||||
@@ -53,7 +53,9 @@ class SystemInfo extends FramerateCategory {
|
||||
if (alpha <= 0.05) return;
|
||||
_text = 'System: $osInfo';
|
||||
_text += '\nCPU: ${cpuName} ${openfl.system.Capabilities.cpuArchitecture} ${(openfl.system.Capabilities.supports64BitProcesses ? '64-Bit' : '32-Bit')}';
|
||||
if (gpuName != cpuName) _text += '\nGPU: ${gpuName} | VRAM $vRAM'; // 1000 bytes of vram (apus)
|
||||
if (gpuName != cpuName) _text += '\nGPU: ${gpuName}'; // 1000 bytes of vram (apus)
|
||||
if (FlxG.stage != null && FlxG.stage.context3D != null)
|
||||
_text += '\nVRAM: ${CoolUtil.getSizeString(cast(FlxG.stage.context3D.totalGPUMemory, UInt))} / $vRAM';
|
||||
_text += '\nTotal MEM: ${totalMem} $memType';
|
||||
_text += '\nGarbage Collector: ${MemoryUtil.disableCount > 0 ? "OFF" : "ON"} (${MemoryUtil.disableCount})';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user