Name: rmT116609 Date: 04/28/2004
A DESCRIPTION OF THE REQUEST :
There is currently no way to set whether vsync is used or not.
JUSTIFICATION :
Currently, vsync is always used with a page flipping strategy and never used in blitting strategies.
This behaviour is not always desirable :
Non-vsynced fullscreen page flipping is desirable when you can't quite achieve a framerate equal to the monitor refreshrate (or a simple fraction of it [1/2, 1/3, 1/4 etc])
Vsynced windowed mode blitting is nearly always desirable as tearing in windowed mode is very ugly.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A simple modifcation to the BufferCapabilities class would be sufficient, so upon BufferStrategy creation you could specify vsync or not.
createBufferStrategy(2, new BufferCapabilities(frontCaps, backCaps, flipContents, isVsynced));
CUSTOMER SUBMITTED WORKAROUND :
Without resorting to JNI, (to manually disable fullscreen vsync, or allow the app. to listen for windowed mode vsync) there is no workaround.
(Incident Review ID: 260164)
======================================================================
|