private BufferStrategy createBufferStrategy(){
  Container root=getRoot();
  if (root == null) {
    return null;
  }
  BufferStrategy bs=null;
  if (SwingUtilities3.isVsyncRequested(root)) {
    bs=createBufferStrategy(root,true);
    if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
      LOGGER.finer("createBufferStrategy: using vsynced strategy");
    }
  }
  if (bs == null) {
    bs=createBufferStrategy(root,false);
  }
  if (!(bs instanceof SubRegionShowable)) {
    bs=null;
  }
  return bs;
}

private BufferStrategy createBufferStrategy ( ) { Container root = getRoot ( ) ; if ( root == null ) { return null ; } BufferStrategy bs = null ; if ( SwingUtilities3 . isVsyncRequested ( root ) ) { bs = createBufferStrategy ( root , true ) ; if ( LOGGER . isLoggable ( PlatformLogger . Level . FINER ) ) { LOGGER . finer ( "createBufferStrategy: using vsynced strategy" ) ; } } if ( bs == null ) { bs = createBufferStrategy ( root , false ) ; } if ( ! ( bs instanceof SubRegionShowable ) ) { bs = null ; } return bs ; }
creates the bufferstrategy . if the appropriate system property has been set we ' ll try for flip first and then we ' ll try for blit .
