Skip to content
Snippets Groups Projects
Commit 8fb015fb authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#105] calc compute time

parent e9d56afd
No related branches found
No related tags found
1 merge request!88Resolve "Indirect Draw"
Pipeline #27390 passed
......@@ -592,11 +592,13 @@ int main(int argc, const char** argv) {
core.prepareSwapchainImageForPresent(cmdStream);
core.submitCommandStream(cmdStream);
auto stop = std::chrono::system_clock::now();
auto kektime = std::chrono::duration_cast<std::chrono::microseconds>(stop - start);
gui.beginGUI();
ImGui::Begin("Settings");
ImGui::Checkbox("Update frustum culling", &updateFrustumPlanes);
ImGui::Text("Deltatime %fms, %f", 0.001 * static_cast<double>(deltatime.count()), 1/(0.000001 * static_cast<double>(deltatime.count())));
ImGui::Text("Deltatime %fms, %f", 0.001 * static_cast<double>(kektime.count()), 1/(0.000001 * static_cast<double>(kektime.count())));
ImGui::End();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment