2021-06-07 18:13:54 +02:00
|
|
|
#include <hex/plugin.hpp>
|
|
|
|
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
|
|
|
|
void addFooterItems() {
|
|
|
|
|
|
|
|
ContentRegistry::Interface::addFooterItem([] {
|
|
|
|
static float framerate = 0;
|
|
|
|
if (ImGui::HasSecondPassed()) {
|
2021-07-27 21:50:49 +02:00
|
|
|
framerate = 1.0F / ImGui::GetIO().DeltaTime;
|
2021-06-07 18:13:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::TextUnformatted(hex::format("FPS {0:.2f}", framerate).c_str());
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|