Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Removed.  (Read 1210 times)
0 Members and 1 Guest are viewing this topic.
Offline Jari Särö

Jr. Member
**

Posts: 82
Medals: 1



« on: 2011-06-25 07:55:17 »

Removed.
Offline ra4king

JGO Kernel
*****

Posts: 3155
Medals: 196


I'm the King!


« Reply #1 on: 2011-06-25 08:24:40 »

Java2D is already by nature quite slow. That's why there are alternatives like OpenGL, via LWJGL or JOGL. However, there are many tweaks you can do to make your app run at the fastest possible.

One thing I can think of is using compatible BufferedImages. This is done using some long static methods:
1  
2  
3  
4  
5  
6  
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gd = ge.getDefaultScreenDevice();
GraphicsConfiguration gc = gd.getDefaultConfiguration();

BufferedImage compatibleImage = gc.createCompatibleImage(width,height,transparency);
//for the transparency you can use either Transparency.OPAQUE, Transparency.BITMASK, or Transparency.TRANSLUCENT

Offline Jari Särö

Jr. Member
**

Posts: 82
Medals: 1



« Reply #2 on: 2011-06-25 08:34:34 »

Removed.
Games published by our own members! Go get 'em!
Offline Jari Särö

Jr. Member
**

Posts: 82
Medals: 1



« Reply #3 on: 2011-06-25 08:35:57 »

Removed.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.128 seconds with 20 queries.