LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: spasi on April 22, 2010, 23:52:12

Title: Option to disable LWJGL checks
Post by: spasi on April 22, 2010, 23:52:12
LWJGL supports a new "hidden" switch as of the latest commit, org.lwjgl.util.NoChecks. When it's true, all runtime function checks, buffer checks and state tracking will be disabled. Use at your own risk for a tiny performance gain.
Title: Re: Option to disable LWJGL checks
Post by: Rene on April 23, 2010, 11:04:03
Is there a document somewhere listing all 'switches' LWJGL has? That would be useful. I searched for it but couldn't find anything
Title: Re: Option to disable LWJGL checks
Post by: princec on April 23, 2010, 11:14:44
There's a .txt file in the /doc directory in the LWJGL docs distribution.

Cas :)
Title: Re: Option to disable LWJGL checks
Post by: spasi on April 23, 2010, 11:29:14
Quoteorg.lwjgl.opengl.Display.noinput
Do not initialize any controls when creating the display

org.lwjgl.opengl.Display.nomouse
Do not create the mouse when creating the display

org.lwjgl.opengl.Display.nokeyboard
Do not create the keyboard when creating the display

org.lwjgl.util.Debug
Whether to output debug info

org.lwjgl.util.NoChecks
Whether to disable runtime function/buffer checks and state tracking.

org.lwjgl.opengl.Display.allowSoftwareOpenGL
Whether to allow creation of a software only opengl context

org.lwjgl.opengl.Window.undecorated
Whether to create an undecorated window (no title bar)

org.lwjgl.input.Mouse.allowNegativeMouseCoords
Usually mouse is clamped to 0,0 - setting this to true will cause you to get negative values if dragging outside and below or left of window