Skip to content

Commit

Permalink
hide framerate in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Dec 23, 2022
1 parent 7ad9028 commit e2c7c56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cpp/re/edit/AppContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ void AppContext::render()
ImGui::PopID();

ImGui::PopID();
ImGui::Separator();

if(maybeReloadTextures())
{
ImGui::Separator();
ImGui::AlignTextToFramePadding();
ReGui::TipIcon();ImGui::SameLine();ImGui::TextUnformatted("Detected image changes");
ImGui::SameLine();
Expand All @@ -273,11 +273,11 @@ void AppContext::render()
ImGui::SameLine();
if(ImGui::Button(ReGui_Prefix(ReGui_Icon_Reset, "Dismiss")))
maybeReloadTextures(false);
ImGui::Separator();
}

if(maybeReloadDevice())
{
ImGui::Separator();
ImGui::AlignTextToFramePadding();
ReGui::TipIcon();ImGui::SameLine();ImGui::TextUnformatted("Detected device changes");
ImGui::SameLine();
Expand All @@ -286,12 +286,13 @@ void AppContext::render()
ImGui::SameLine();
if(ImGui::Button(ReGui_Prefix(ReGui_Icon_Reset, "Dismiss")))
maybeReloadDevice(false);
ImGui::Separator();
}

#ifndef NDEBUG
ImGui::Separator();
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate,
ImGui::GetIO().Framerate);

#endif
}

}
Expand Down

0 comments on commit e2c7c56

Please sign in to comment.