option to change glfwSwapInterval

This commit is contained in:
Bixilon 2021-06-02 16:20:22 +02:00 committed by Lukas
parent 4076401c5c
commit 11214d8915
2 changed files with 2 additions and 1 deletions

View File

@ -20,4 +20,5 @@ data class OtherGameConfig(
@Json(name = "flower_random_offset") var flowerRandomOffset: Boolean = true,
@Json(name = "block_outline") var blockOutline: BlockOutline = BlockOutline(),
@Json(name = "magic_fps") var magicFPS: Boolean = false,
@Json(name = "super_dumb_advanced_setting_leave_at_1") var swapInterval: Int = 1,
)

View File

@ -172,7 +172,7 @@ class RenderWindow(
// Make the OpenGL context current
glfwMakeContextCurrent(windowId)
// Enable v-sync
glfwSwapInterval(1)
glfwSwapInterval(Minosoft.config.config.game.other.swapInterval)
// Make the window visible