mirror of https://github.com/WerWolv/ImHex.git
18 lines
402 B
C++
18 lines
402 B
C++
|
#include <hex/plugin.hpp>
|
||
|
|
||
|
namespace hex::plugin::builtin {
|
||
|
|
||
|
void addFooterItems() {
|
||
|
|
||
|
ContentRegistry::Interface::addFooterItem([] {
|
||
|
static float framerate = 0;
|
||
|
if (ImGui::HasSecondPassed()) {
|
||
|
framerate = ImGui::GetIO().Framerate;
|
||
|
}
|
||
|
|
||
|
ImGui::TextUnformatted(hex::format("FPS {0:.2f}", framerate).c_str());
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|