Skip to content

Commit

Permalink
PE: Added log vram usage to Guru-MapEditor.log
Browse files Browse the repository at this point in the history
  • Loading branch information
plemsoft committed Jan 7, 2025
1 parent 314f358 commit 7b159da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GameGuru Core/GameGuru/Source/M-Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ void timestampactivity ( int i, char* desc_s )
Sync();
}
mem = DMEMAvailable();
float GetVramUsage(void);
float vram = GetVramUsage();
videomemdesc_s = Str((mem - g.timestampactivityvideomemthen)); videomemdesc_s = videomemdesc_s + "MB";
g.timestampactivityvideomemthen = mem;
videomemsofardesc_s = " ("; videomemsofardesc_s = videomemsofardesc_s + Str(smem / 1024) + "," + Str(DMEMAvailable()) + ")";
videomemsofardesc_s = " ("; videomemsofardesc_s = videomemsofardesc_s + Str(smem / 1024) + "," + Str((int)vram) + ")";
tpart1_s = Str(Timer()); tpart1_s = tpart1_s + " : " + desc_s + " ";
tpart2_s = "S:"; tpart2_s = tpart2_s + memdesc_s;
tpart3_s = "V:"; tpart3_s = tpart3_s + videomemsofardesc_s;
Expand Down

0 comments on commit 7b159da

Please sign in to comment.