Skip to content

Commit

Permalink
Add cam # to fps text.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperlogic committed Apr 9, 2024
1 parent 4c24ffb commit 29ec5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ bool App::Init()
});
#endif // USE_SDL

std::string text = "iter: " + std::to_string(currentIteration - 1);
std::string text = "cam: " + std::to_string(cameraIndex) + " iter: " + std::to_string(currentIteration - 1);
fpsText = textRenderer->AddScreenTextWithDropShadow(glm::ivec2(0, 0), (int)TEXT_NUM_ROWS, WHITE, BLACK, text);

return true;
Expand All @@ -799,7 +799,7 @@ void App::ProcessEvent(const SDL_Event& event)

void App::UpdateFps(float fps)
{
std::string text = "iter: " + std::to_string(currentIteration - 1) + " fps: " + std::to_string((int)fps);
std::string text = "cam: " + std::to_string(cameraIndex) + " iter: " + std::to_string(currentIteration - 1) + " fps: " + std::to_string((int)fps);
textRenderer->RemoveText(fpsText);
fpsText = textRenderer->AddScreenTextWithDropShadow(glm::ivec2(0, 0), TEXT_NUM_ROWS, WHITE, BLACK, text);

Expand Down

0 comments on commit 29ec5ee

Please sign in to comment.