Show / Hide Table of Contents

Class GameWindowSettings

GameWindow related settings.

Inheritance
object
GameWindowSettings
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Windowing.Desktop
Assembly: OpenTK.Windowing.Desktop.dll
Syntax
public class GameWindowSettings

Fields

Default

The default GameWindowSettings.

Declaration
public static readonly GameWindowSettings Default
Field Value
Type Description
GameWindowSettings

Properties

IsMultiThreaded

Gets or sets a value indicating whether the game window should use a separate thread for render events.

Declaration
[Obsolete("There is not one size fits all multithreading solution, especially for OpenGL. This feature has been removed and will no longer work.", true)]
public bool IsMultiThreaded { get; set; }
Property Value
Type Description
bool

RenderFrequency

Gets or sets a double representing the render frequency, in hertz.

Declaration
[Obsolete("Use UpdateFrequency instead. We no longer support different update rates for OnUpdateFrame and OnRenderFrame.", true)]
public double RenderFrequency { get; set; }
Property Value
Type Description
double
Remarks

A value of 0.0 indicates that RenderFrame events are generated at the maximum possible frequency (i.e. only limited by the hardware's capabilities).

Values lower than 1.0Hz are clamped to 0.0. Values higher than 500.0Hz are clamped to 200.0Hz.

UpdateFrequency

Gets or sets a double representing the update frequency, in hertz.

Declaration
public double UpdateFrequency { get; set; }
Property Value
Type Description
double
Remarks

A value of 0.0 indicates that UpdateFrame events are generated at the maximum possible frequency (i.e. only limited by the hardware's capabilities).

Values lower than 1.0Hz are clamped to 0.0. Values higher than 500.0Hz are clamped to 500.0Hz.

Win32SuspendTimerOnDrag

Gets or sets a value which controls whether the timer which drives FrameEventArgs is suspended when the user begins dragging the window or window frame. Only applies to Windows applications.

Declaration
public bool Win32SuspendTimerOnDrag { get; set; }
Property Value
Type Description
bool
In This Article
Back to top Generated by DocFX