vram counter

This commit is contained in:
Yoshman29
2023-03-26 23:52:25 +02:00
parent 548210c51d
commit 1997be7164
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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;
+3 -1
View File
@@ -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})';