Add VSync setting.
This commit is contained in:
@@ -73,6 +73,7 @@ namespace OpenRA
|
||||
void DisableDepthBuffer();
|
||||
void ClearDepthBuffer();
|
||||
void SetBlendMode(BlendMode mode);
|
||||
void SetVSyncEnabled(bool enabled);
|
||||
string GLVersion { get; }
|
||||
}
|
||||
|
||||
|
||||
@@ -427,6 +427,11 @@ namespace OpenRA
|
||||
Window.Dispose();
|
||||
}
|
||||
|
||||
public void SetVSyncEnabled(bool enabled)
|
||||
{
|
||||
Window.Context.SetVSyncEnabled(enabled);
|
||||
}
|
||||
|
||||
public string GetClipboardText()
|
||||
{
|
||||
return Window.GetClipboardText();
|
||||
|
||||
@@ -138,6 +138,9 @@ namespace OpenRA
|
||||
[Desc("This can be set to Windowed, Fullscreen or PseudoFullscreen.")]
|
||||
public WindowMode Mode = WindowMode.PseudoFullscreen;
|
||||
|
||||
[Desc("Enable VSync.")]
|
||||
public bool VSync = true;
|
||||
|
||||
[Desc("Screen resolution in fullscreen mode.")]
|
||||
public int2 FullscreenSize = new int2(0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user