|
|
|
@ -789,6 +789,13 @@ void HudElements::frame_timing(){
|
|
|
|
|
NULL, min_time, max_time,
|
|
|
|
|
ImVec2(width, height));
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_horizontal]) {
|
|
|
|
|
ImGui::PlotLines(hash, get_time_stat, HUDElements.sw_stats,
|
|
|
|
|
ARRAY_SIZE(HUDElements.sw_stats->frames_stats), 0,
|
|
|
|
|
NULL, min_time, max_time,
|
|
|
|
|
ImVec2(width, height));
|
|
|
|
|
} else {
|
|
|
|
|
if (ImPlot::BeginPlot("My Plot", ImVec2(width, height), ImPlotFlags_CanvasOnly | ImPlotFlags_NoInputs)) {
|
|
|
|
|
ImPlotStyle& style = ImPlot::GetStyle();
|
|
|
|
|
style.Colors[ImPlotCol_PlotBg] = ImVec4(0.92f, 0.92f, 0.95f, 0.00f);
|
|
|
|
@ -812,6 +819,7 @@ void HudElements::frame_timing(){
|
|
|
|
|
}
|
|
|
|
|
ImPlot::EndPlot();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|