United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 5039246 Add option to turn vsync on or off for fullscreen & windowed mode
5039246 : Add option to turn vsync on or off for fullscreen & windowed mode

Details
Type:
Enhancement
Submit Date:
2004-04-28
Status:
Open
Updated Date:
2007-01-11
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
1.4.2
Targeted Versions:

Related Reports

Sub Tasks

Description

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) 
======================================================================

                                    

Comments



Hardware and Software, Engineered to Work Together