Disabled vsync + added input list to Character
Not everything breaks without vsync. GUI updates need to be fixed.
This commit is contained in:
@@ -27,6 +27,10 @@ namespace Barotrauma
|
||||
get { return netStateID; }
|
||||
}
|
||||
|
||||
List<char> memInput = new List<char>();
|
||||
List<float> memMouseX = new List<float>();
|
||||
List<float> memMouseY = new List<float>();
|
||||
|
||||
//the Character that the player is currently controlling
|
||||
private static Character controlled;
|
||||
|
||||
|
||||
@@ -104,7 +104,10 @@ namespace Barotrauma
|
||||
|
||||
public GameMain()
|
||||
{
|
||||
Graphics = new GraphicsDeviceManager(this);
|
||||
Graphics = new GraphicsDeviceManager(this)
|
||||
{
|
||||
SynchronizeWithVerticalRetrace = false,
|
||||
};
|
||||
|
||||
Window.Title = "Barotrauma";
|
||||
|
||||
@@ -143,6 +146,8 @@ namespace Barotrauma
|
||||
FarseerPhysics.Settings.ContinuousPhysics = false;
|
||||
FarseerPhysics.Settings.VelocityIterations = 1;
|
||||
FarseerPhysics.Settings.PositionIterations = 1;
|
||||
|
||||
Graphics.ApplyChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user