예제 #1
0
 /**
  * Set the buffer swap interval. This call is a best-attempt at changing the monitor swap
  * interval, which is the minimum periodicity of color buffer swaps, measured in video frame
  * periods, and is not guaranteed to be successful.
  *
  * <p>A video frame period is the time required to display a full frame of video data.
  *
  * @param value The swap interval in frames, 0 to disable
  */
 public static void setSwapInterval(int value) {
   synchronized (GlobalLock.lock) {
     swap_interval = value;
     if (isCreated()) drawable.setSwapInterval(swap_interval);
   }
 }