Files
AC6_recomp/src/render_hooks.h
T
2026-04-17 20:09:41 +03:00

26 lines
460 B
C++

#pragma once
#include <cstdint>
#include <rex/cvar.h>
#include <rex/ppc/types.h>
REXCVAR_DECLARE(bool, ac6_unlock_fps);
namespace ac6 {
struct FrameStats {
double frame_time_ms{0.0};
double fps{0.0};
uint64_t frame_count{0};
};
FrameStats GetFrameStats();
} // namespace ac6
bool ac6FlipIntervalHook();
bool ac6PresentIntervalHook(PPCRegister& r10);
void ac6DeltaDivisorHook(PPCRegister& r29);
void ac6PresentTimingHook(PPCRegister& r31);