mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
Added FPS display
This commit is contained in:
@@ -64,6 +64,18 @@ namespace hex {
|
||||
for (auto &view : this->m_views)
|
||||
view->createMenu();
|
||||
|
||||
|
||||
if (ImGui::BeginMenu("View")) {
|
||||
ImGui::MenuItem("Display FPS", "", &this->m_fpsVisible);
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (this->m_fpsVisible) {
|
||||
ImGui::SameLine(ImGui::GetWindowWidth() - 80);
|
||||
ImGui::Text("%.1f FPS", ImGui::GetIO().Framerate);
|
||||
}
|
||||
|
||||
|
||||
ImGui::EndMenuBar();
|
||||
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user