Add option to limit render fps to game tick rate

This helps slow systems that struggle to render 2 frames per game tick.
This commit is contained in:
reaperrr
2021-12-05 14:47:42 +01:00
committed by Pavel Penev
parent 216029dc27
commit 145f6abc09
5 changed files with 34 additions and 3 deletions

View File

@@ -312,6 +312,16 @@ Container@DISPLAY_PANEL:
Height: 20
Font: Regular
Text: Enable VSync
Container@FRAME_LIMIT_GAMESPEED_CHECKBOX_CONTAINER:
X: PARENT_RIGHT / 2 + 10
Y: 25
Width: PARENT_RIGHT / 2 - 20
Children:
Checkbox@FRAME_LIMIT_GAMESPEED_CHECKBOX:
Width: PARENT_RIGHT
Height: 20
Font: Regular
Text: Limit framerate to game tick rate
Container@ROW:
Width: PARENT_RIGHT - 24
Height: 50