disable vsync and force maxFps to zero

This commit is contained in:
Emily 2026-03-09 13:03:23 -04:00
parent 6753364573
commit e13c573ecc
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ void C4JRender::Initialise()
}
glfwMakeContextCurrent(s_window);
glfwSwapInterval(1); // vsync
glfwSwapInterval(0); // vsync
// Keep viewport in sync with OS-driven window resizes.
glfwSetFramebufferSizeCallback(s_window, onFramebufferResize);

View file

@ -1068,11 +1068,11 @@ void GameRenderer::render(float a, bool bFirst)
int xMouse = Mouse::getX() * screenWidth / fbw;
int yMouse = screenHeight - Mouse::getY() * screenHeight / fbh - 1;
int maxFps = getFpsCap(mc->options->framerateLimit);
int maxFps = 0;//getFpsCap(mc->options->framerateLimit);
if (mc->level != NULL)
{
if (mc->options->framerateLimit == 0)
if (maxFps == 0)
{
renderLevel(a, 0);
}