United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6678218 D3D: provide a way to create a v-synced BufferStrategy
JDK-6678218 : D3D: provide a way to create a v-synced BufferStrategy

Details
Type:
Bug
Submit Date:
2008-03-20
Status:
Closed
Updated Date:
2010-10-14
Project Name:
JDK
Resolved Date:
2008-04-12
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b22)

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
We need to provide a way to create v-synch-ed buffer strategies. 
This is important for Scenario and animation support.

                                    

Comments
EVALUATION

Java2D will provide a way to create v-synch-ed buffer strategies
when the d3d pipeline is enabled. 

Note that since the D3D pipeline uses single thread rendering - meainng
that all D3D-related activity happens on a single thread only
one BufferStrategy in per vm instance can be made v-synced without
undesireable effects. 

If there's more than one (say N) v-synced BSs then
since their Present() calls will effectively be serialized (since they're
running from a single thread) each BS will be able
to flip only on every Nth vsync, resulting in decrease in
perceived responsiveness.

Additional work will be needed in Swing to use this internal
API to create a v-synced swing back-buffer at Scenario's request,
this will be tracked by a different bug.
                                     
2008-03-20
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/6u10/6678218.1
                                     
2008-03-25



Hardware and Software, Engineered to Work Together