mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-13 01:16:46 -04:00
option to change glfwSwapInterval
This commit is contained in:
parent
4076401c5c
commit
11214d8915
@ -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,
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user