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:
juanjp600
2016-09-18 18:17:15 -03:00
parent 5da2bc9523
commit c97f729fb3
8 changed files with 35 additions and 16 deletions

View File

@@ -101,6 +101,7 @@ namespace Barotrauma
if (Hull.renderer != null)
{
Hull.renderer.ScrollWater(deltaTime);
Hull.renderer.RenderBack(spriteBatch, renderTarget, 0.0f);
}
@@ -134,13 +135,13 @@ namespace Barotrauma
}
public void Update()
/*public void Update()
{
if (Hull.renderer != null)
{
Hull.renderer.ScrollWater();
}
}
}*/
bool drawn;
public IEnumerable<object> DoLoading(IEnumerable<object> loader)