mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-02 05:48:21 +00:00
Removed obsolete VSync property.
This commit is contained in:
parent
10859fbbe7
commit
6d96b57deb
|
@ -501,31 +501,11 @@ namespace OpenTK.Graphics
|
||||||
private set { disposed = value; }
|
private set { disposed = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// [obsolete] Use SwapInterval property instead.
|
|
||||||
/// Gets or sets a value indicating whether VSync is enabled. When VSync is
|
|
||||||
/// enabled, <see cref="SwapBuffers()"/> calls will be synced to the refresh
|
|
||||||
/// rate of the <see cref="DisplayDevice"/> that contains improving visual
|
|
||||||
/// quality and reducing CPU usage. However, systems that cannot maintain
|
|
||||||
/// the requested rendering rate will suffer from large jumps in performance.
|
|
||||||
/// This can be counteracted by increasing the <see cref="SwapInterval"/>
|
|
||||||
/// value.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Use SwapInterval property instead.")]
|
|
||||||
public bool VSync
|
|
||||||
{
|
|
||||||
#pragma warning disable 0612, 0618 // CS0612/CS0618: 'member' is obsolete
|
|
||||||
get { return implementation.VSync; }
|
|
||||||
set { implementation.VSync = value; }
|
|
||||||
#pragma warning restore 0612, 0618
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a positive integer in the range [1, n), indicating the number of
|
/// Gets or sets a positive integer in the range [1, n), indicating the number of
|
||||||
/// <see cref="DisplayDevice"/> refreshes between consecutive
|
/// <see cref="DisplayDevice"/> refreshes between consecutive
|
||||||
/// <see cref="SwapBuffers()"/> calls. The maximum value for n is
|
/// <see cref="SwapBuffers()"/> calls. The maximum value for n is
|
||||||
/// implementation-dependent. The default value is 1.
|
/// implementation-dependent. The default value is 1.
|
||||||
/// This value will only affect instances where <see cref="VSync"/> is enabled.
|
|
||||||
/// Invalid values will be clamped to the valid range.
|
/// Invalid values will be clamped to the valid range.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int SwapInterval
|
public int SwapInterval
|
||||||
|
|
|
@ -41,24 +41,11 @@ namespace OpenTK.Graphics
|
||||||
/// </summary>
|
/// </summary>
|
||||||
bool IsDisposed { get; }
|
bool IsDisposed { get; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets a value indicating whether VSync is enabled. When VSync is
|
|
||||||
/// enabled, <see cref="SwapBuffers()"/> calls will be synced to the refresh
|
|
||||||
/// rate of the <see cref="DisplayDevice"/> that contains improving visual
|
|
||||||
/// quality and reducing CPU usage. However, systems that cannot maintain
|
|
||||||
/// the requested rendering rate will suffer from large jumps in performance.
|
|
||||||
/// This can be counteracted by increasing the <see cref="SwapInterval"/>
|
|
||||||
/// value.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Use SwapInterval property instead.")]
|
|
||||||
bool VSync { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a positive integer in the range [1, n), indicating the number of
|
/// Gets or sets a positive integer in the range [1, n), indicating the number of
|
||||||
/// <see cref="DisplayDevice"/> refreshes between consecutive
|
/// <see cref="DisplayDevice"/> refreshes between consecutive
|
||||||
/// <see cref="SwapBuffers()"/> calls. The maximum value for n is
|
/// <see cref="SwapBuffers()"/> calls. The maximum value for n is
|
||||||
/// implementation-dependent. The default value is 1.
|
/// implementation-dependent. The default value is 1.
|
||||||
/// This value will only affect instances where <see cref="VSync"/> is enabled.
|
|
||||||
/// Invalid values will be clamped to the valid range.
|
/// Invalid values will be clamped to the valid range.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
int SwapInterval { get; set; }
|
int SwapInterval { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue