From 8bec3356e5265040cfce37a97e36364416de84f4 Mon Sep 17 00:00:00 2001 From: skymz4 <99190689+skymz4@users.noreply.github.com> Date: Sat, 16 Apr 2022 17:45:20 +0200 Subject: [PATCH] __ --- renderd7.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/renderd7.cpp b/renderd7.cpp index 1e9bb49..bb41ae3 100644 --- a/renderd7.cpp +++ b/renderd7.cpp @@ -52,7 +52,8 @@ int mt_screen; //int mt_width = mt_screen ? 320 : 400; float mt_txtSize; bool metrikd = false; -double mt_fpsgraph[320]; +//double mt_fpsgraph[320]; +std::vector mt_fpsgraph; //------------------------------------------- bool currentScreen = false; @@ -272,7 +273,7 @@ void frameloop() last_time = osGetTime(); } d11framerate = current_fps; - mt_fpsgraph[320] = current_fps; + //mt_fpsgraph[320] = current_fps; } float getframerate() { @@ -932,7 +933,7 @@ void RenderD7::DrawMetrikOvl() RenderD7::DrawText(0, 90, mt_txtSize, mt_txtcolor, "CMD: " + std::to_string(C3D_GetCmdBufUsage()*100.0f) + "%/" + std::to_string(C3D_GetCmdBufUsage())); for (int z = 0; z < 320; z++) { - C2D_DrawLine(z, 239 - mt_fpsgraph[z], mt_txtcolor, z + 1, 239 - mt_fpsgraph[z + 1], mt_txtcolor, 1, 1); + //C2D_DrawLine(z, 239 - mt_fpsgraph[z], mt_txtcolor, z + 1, 239 - mt_fpsgraph[z + 1], mt_txtcolor, 1, 1); } }