From 098a41b8bf24f67b7ce62abdcd4024267ae4c1af Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 3 Feb 2025 19:17:27 +0100 Subject: [PATCH] Show node ID in frame information overlay --- modules/debugging/debuggingmodule.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/debugging/debuggingmodule.cpp b/modules/debugging/debuggingmodule.cpp index 725cf50543..55df018e7e 100644 --- a/modules/debugging/debuggingmodule.cpp +++ b/modules/debugging/debuggingmodule.cpp @@ -106,7 +106,7 @@ DebuggingModule::DebuggingModule() WindowDelegate* del = global::windowDelegate; glm::vec2 penPosition = glm::vec2( - global::renderEngine->fontResolution().x / 2 - 50, + global::renderEngine->fontResolution().x / 2 - 70, global::renderEngine->fontResolution().y / 3 ); @@ -122,13 +122,14 @@ DebuggingModule::DebuggingModule() } }(frustum); + std::string node = std::to_string(del->currentNode()); std::string sgFn = std::to_string(del->swapGroupFrameNumber()); std::string dt = std::to_string(del->deltaTime()); std::string avgDt = std::to_string(del->averageDeltaTime()); const std::string res = std::format( - "Frame: {} {}\nSwap group frame: {}\nDt: {}\nAvg Dt: {}", - fn, fr, sgFn, dt, avgDt + "Node: {}\n\nFrame: {} {}\nSwap group frame: {}\nDt: {}\nAvg Dt: {}", + node, fn, fr, sgFn, dt, avgDt ); RenderFont(*_fontFrameInfo, penPosition, res); }