Skip to content

Commit

Permalink
removed script draw count logging
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Gjerde committed Dec 12, 2022
1 parent 3909d55 commit c22a15c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/Viewer/Scripts/Private/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ namespace VkRender {
if (!renderData.drawThisScript)
return;

/*
auto time = std::chrono::steady_clock::now();
std::chrono::duration<float> time_span =
std::chrono::duration_cast<std::chrono::duration<float>>(time - lastLogTime);
if (time_span.count() > INTERVAL_10_SECONDS || renderData.scriptDrawCount == 0) {
lastLogTime = std::chrono::steady_clock::now();
Log::Logger::getInstance()->info("Draw-number: {} for script: {}", renderData.scriptDrawCount,
renderData.scriptName.c_str());
Log::Logger::getInstance()->info("Draw-number: {} for script: {}", renderData.scriptDrawCount, renderData.scriptName.c_str());
}
*/
draw(commandBuffer, i, b);
if (i == 0)
renderData.scriptDrawCount++;
Expand Down

0 comments on commit c22a15c

Please sign in to comment.