adding fps capper

This commit is contained in:
Kbz-8
2024-01-18 15:25:03 +01:00
parent eeded8c8bc
commit 04db0a7441
8 changed files with 133 additions and 6 deletions

View File

@@ -64,6 +64,11 @@ namespace mlx::core
*h = DM.h;
}
void Application::setFPSCap(uint32_t fps) noexcept
{
_fps.setMaxFPS(fps);
}
void* Application::newGraphicsSuport(std::size_t w, std::size_t h, const char* title)
{
MLX_PROFILE_FUNCTION();