Added option to toggle vsync
For the ultimate PC master race experience. Also calling water scroll on every frame with deltatime instead of being called at fixed intervals, making it look smoother as framerate increases.
This commit is contained in:
@@ -126,6 +126,7 @@ namespace Barotrauma
|
||||
|
||||
graphicsWidth = Config.GraphicsWidth;
|
||||
graphicsHeight = Config.GraphicsHeight;
|
||||
Graphics.SynchronizeWithVerticalRetrace = Config.VSyncEnabled;
|
||||
|
||||
Graphics.HardwareModeSwitch = Config.WindowMode != WindowMode.BorderlessWindowed;
|
||||
|
||||
@@ -310,7 +311,7 @@ namespace Barotrauma
|
||||
|
||||
if (titleScreenOpen)
|
||||
{
|
||||
TitleScreen.Update();
|
||||
//TitleScreen.Update();
|
||||
}
|
||||
else if (hasLoaded)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user