Merge pull request #135 from urzuline/dev

disable vsync and force maxFps to zero
This commit is contained in:
DecalOverdose 2026-03-09 21:11:24 +04:00 committed by GitHub
commit 5f3ae12d16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}