title: FPS drops in Fullscreen mode but fine in Window/Applet?
body: <p>I've been working on a game engine. It can create games in windowed mode, fullscreen mode or applet mode. The FPS is fine in applet mode and windowed mode (gives me 90-120 fps with upto 3000 objects in the map), but in fullscreen mode, it drops to 25-50 fps. Here's the window class.</p>
  
  <p><a href="https://code.google.com/p/game-engine-for-java/source/browse/src/com/gej/core/GWindow.java" rel="nofollow">https://code.google.com/p/game-engine-for-java/source/browse/src/com/gej/core/GWindow.java</a></p>
  
  <p>Could not find where the problem is. And more over running on windows is fine but on Ubuntu it has this problem. Listing the display modes gave me the bit depth -1 Here's the complete list on my machine.</p>
  
  <pre><code>1600     900     -1
  1440     900     -1
  1440     900     -1
  1280     800     -1
  1280     800     -1
  1152     864     -1
  1024     768     -1
  1024     768     -1
  1024     768     -1
  832      624     -1
  800      600     -1
  800      600     -1
  800      600     -1
  800      600     -1
  640      480     -1
  640      480     -1
  640      480     -1
  640      480     -1
  720      400     -1
  </code></pre>
  
  <p>I've found that bit depth -1 indicates BIT_DEPTH_MULTI, a constant in the DisplayMode class. So setting the mode increased the fps to 60-70fps but still not as much as in windowed mode.</p>