add 0.1% lows to the brief benchmark overlay

pull/232/head
Kingsley McDonald 4 years ago
parent 2809c824e2
commit 053a1d8a44

@ -789,6 +789,8 @@ void calculate_benchmark_data(){
benchmark.total = sorted[i];
}
benchmark.oneP = benchmark.total;
// 0.1% min
benchmark.pointOneP = sorted[sorted.size() * 0.01];
}
void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID){
@ -1022,7 +1024,7 @@ void render_benchmark(swapchain_stats& data, struct overlay_params& params, ImVe
else
ImGui::SetNextWindowPos(ImVec2(data.main_window_pos.x, data.main_window_pos.y + window_size.y + 5), ImGuiCond_Always);
vector<pair<string, float>> benchmark_data = {{"97%", benchmark.ninety}, {"AVG", benchmark.avg}, {"1% ", benchmark.oneP}};
vector<pair<string, float>> benchmark_data = {{"97% ", benchmark.ninety}, {"AVG ", benchmark.avg}, {"1% ", benchmark.oneP}, {"0.1%", benchmark.pointOneP}};
float display_time = float(now - log_end) / 1000000;
float display_for = 10.0f;
float alpha;

@ -55,6 +55,7 @@ struct benchmark_stats {
float ninety;
float avg;
float oneP;
float pointOneP;
float total;
std::vector<float> fps_data;
};

Loading…
Cancel
Save