params: dynamic_frame_timing

This changes frame_timing y-axis to correspond with the current maximum
and minimum frametime instead of being a static 0-50

[skip ci]
pull/1054/head
FlightlessMango 11 months ago
parent 881b4d2e4a
commit 6e264adecb

@ -677,6 +677,12 @@ void HudElements::frame_timing(){
width = ImGui::GetWindowContentRegionWidth();
height = max_time;
}
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_dynamic_frame_timing]){
min_time = min_frametime;
max_time = max_frametime;
}
if (ImGui::BeginChild("my_child_window", ImVec2(width, height))) {
if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_histogram]){
ImGui::PlotHistogram(hash, get_time_stat, HUDElements.sw_stats,

@ -101,6 +101,7 @@ typedef unsigned long KeySym;
OVERLAY_PARAM_BOOL(engine_short_names) \
OVERLAY_PARAM_BOOL(text_outline) \
OVERLAY_PARAM_BOOL(temp_fahrenheit) \
OVERLAY_PARAM_BOOL(dynamic_frame_timing) \
OVERLAY_PARAM_CUSTOM(fps_sampling_period) \
OVERLAY_PARAM_CUSTOM(output_folder) \
OVERLAY_PARAM_CUSTOM(output_file) \

Loading…
Cancel
Save