This commit is contained in:
skymz4 2022-04-16 17:45:20 +02:00 committed by GitHub
parent 3b4e541d0e
commit 8bec3356e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,8 @@ int mt_screen;
//int mt_width = mt_screen ? 320 : 400; //int mt_width = mt_screen ? 320 : 400;
float mt_txtSize; float mt_txtSize;
bool metrikd = false; bool metrikd = false;
double mt_fpsgraph[320]; //double mt_fpsgraph[320];
std::vector<int> mt_fpsgraph;
//------------------------------------------- //-------------------------------------------
bool currentScreen = false; bool currentScreen = false;
@ -272,7 +273,7 @@ void frameloop()
last_time = osGetTime(); last_time = osGetTime();
} }
d11framerate = current_fps; d11framerate = current_fps;
mt_fpsgraph[320] = current_fps; //mt_fpsgraph[320] = current_fps;
} }
float getframerate() 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())); 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++) 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);
} }
} }