Minor optimizations + Potential bugfixes

This commit is contained in:
juanjp600
2017-10-11 22:52:13 -03:00
parent f46dc5da28
commit 3a67418985
4 changed files with 26 additions and 5 deletions
@@ -111,6 +111,7 @@ namespace Barotrauma
public GameMain()
{
GraphicsDeviceManager = new GraphicsDeviceManager(this);
Window.Title = "Barotrauma";
Instance = this;
@@ -145,6 +146,9 @@ namespace Barotrauma
{
GraphicsWidth = Config.GraphicsWidth;
GraphicsHeight = Config.GraphicsHeight;
GraphicsDeviceManager.GraphicsProfile = GraphicsProfile.HiDef;
GraphicsDeviceManager.PreferredBackBufferFormat = SurfaceFormat.Bgra32;
GraphicsDeviceManager.PreferMultiSampling = false;
GraphicsDeviceManager.SynchronizeWithVerticalRetrace = Config.VSyncEnabled;
if (Config.WindowMode == WindowMode.Windowed)