DesktopConfiguration
Package: Libraries.Game · Inherits from: Libraries.Language.Object, Libraries.Game.ApplicationConfiguration
This class represents the configuration of the game. It is referenced when the game is first created to set its initial data.
Variables
boolean resizable: If true, the window will be resizable.boolean enableAccessibility: Whether or not the game should support accessibility devices, such as screen readers. This value is true by default. This value must be set before starting the game to have any effect -- changing it after will do nothing.integer shadowMapCascadeCount: This action sets the number of "splits" used in cascading shadow maps. Increasing this number provides higher quality shadows but negatively impacts performance. The increase in quality with higher numbers falls off quickly, but the performance impact does not, so it is advised to keep this number relatively low. The default value is 3.text title: The title of the application.boolean vSyncEnabled: If true, the application uses vSync: each frame is shown at the display's refresh, so frames don't tear and the game runs no faster than the display. If false (the default), frames are shown as soon as they're ready. Under Vulkan that is the IMMEDIATE present mode, which can tear (the swapchain uses FIFO instead if the device doesn't offer it); under OpenGL it is a swap interval of 0.boolean limitFramesPerSecond: Whether or not the game engine should limit the total frames rendered per second. If this is false, the engine will attempt to render as many frames as possible, which can potentially waste CPU time, consume more power, and adversely affect how screen readers interact with the application. If this value is set to true, the engine will try to limit the frames rendered to the targetFramesPerSecond value. This value is true by default.integer targetFramesPerSecond: Target framerate when "limitFramesPerSecond" is set to true. The default value is 70.integer pointShadowMapSize: This value sets the size, in pixels, of each of the six faces of a point light's shadow map. Point lights keep their own size, as a lamp's shadows are seen from close by and need far fewer pixels than the sun's. Larger values give sharper point light shadows, but each point light's map uses 6 times this size squared times 8 bytes of GPU memory: 12.6 MB at 512, 50 MB at 1024. It is recommended to use powers of two, e.g. 256, 512, 1024 or 2048. The default value is 512.Libraries.Game.Graphics.Vulkan.VulkanOptions vulkanOptions: The VulkanOptions describe various details about how the Vulkan library should be used to render the game, including the Vulkan API version and whether or not to use validation layers for debugging.integer height: The initial height of the application screen.boolean useVulkan: Whether or not this application should use Vulkan for rendering. It is true by default. If this value is false, or if Vulkan isn't supported on this machine, the application will use OpenGL for rendering instead. Some features, such as terrain, need Vulkan. Must be set before starting the game.integer y: Initial y coordinate where the window will appear on screen. -1 for center.number multipleClickTimer: The maximum number of seconds allowed between each mouse click before the click is no longer considered related to the previous click. This is used for things such as double-click input.boolean autoResizeTextures: If true, the textures will automatically be resized when the window is resized.Libraries.Game.Graphics.Color initialBackgroundColor: The starting color of the window while the Game is loading.Libraries.Game.ScreenResolution defaultResolution: The ScreenResolution to use when the game launches. If left undefined, the game will create a window using the configuration's given width and height.integer maximumLights: This option sets the maximum number of lights that can be active in a single Layer3D at a time. The default value is 16. This value should be set before the Game starts, and only affects Vulkan applications.integer x: Initial x coordinate where the window will appear on screen. -1 for center.integer width: The initial width of the application screen.number minimumFrameDelay: If limitFramesPerSecond is true, this value represents the minimum number of seconds the engine should wait between frames. Having a minimum delay between frames gives screen readers and other accessibility technologies a greater opportunity to collect information from the system. If this value is set to 0, then the engine will only delay as much as necessary to hit the target frame rate. The default value is 0.01 seconds.number multipleKeyPressTimer: The maximum number of seconds allowed between each key press before the press is no longer considered related to the previous key press. This is used for things like capturing double-taps on keys.integer shadowMapSize: This value determines the dimensions of the textures used by shadow maps in the game. Larger textures allow for higher resolution shadows but negatively impact performance. It is recommended to use powers of two for this value, e.g. 512, 1024, 2048, or 4096. The default value is 2048.boolean maximized: Whether or not the window should be maximized when launched. This only works if the window isn't fullscreen. By default, this value is false.