Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (306)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Performance Tuning / Re: AffineTransform with openGL Pipeline slower than without on: 2012-02-01 17:08:37
Wow,
removing this line gave me 3 more fps with openGL and more than the camera fetches without using openGL.

Unfortunately the quality is now poor.
So thank you, theagentd, this will work for my first draft.

But i'm still open for other solutions.

quietschie
2  Game Development / Performance Tuning / AffineTransform with openGL Pipeline slower than without on: 2012-02-01 16:46:18
Hi Everyone,

i'm fetching bufferedImages from camera and want to scale them to whatever window-size is.
Therefore i use the AffineTransform like this
1  
AffineTransform xform2 = AffineTransform.getScaleInstance((double)getWidth() / myWidth, (double)getHeight() / myHeight);

where myWidth / myHeight hold the original Image width/height.
I draw the images via
1  
2  
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
g2.drawImage(image, xform2, null);


this works fine with about 25 fps, but when i switch to fullscreen i only got about 7 fps left.
when i run the application with the openGL pipeline Option
1  
-Dsun.java2d.opengl=True
it slows down to 2 fps in small size.

Any idea highly appreciated.

quietschie
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
Jesse_Attard (10 views)
2013-06-19 13:03:02

HeroesGraveDev (55 views)
2013-06-16 14:35:23

Vermeer (55 views)
2013-06-15 11:08:06

davedes (55 views)
2013-06-15 07:03:55

alaslipknot (50 views)
2013-06-13 22:56:31

Roquen (68 views)
2013-06-12 19:12:32

alaslipknot (56 views)
2013-06-11 10:30:18

HeroesGraveDev (72 views)
2013-06-09 19:36:03

alaslipknot (60 views)
2013-06-09 18:40:19

CodeHead (60 views)
2013-06-09 17:55:41
Smoothing Algorithm Question
by UprightPath
2013-05-28 17:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 17:57:33

Complex number cookbook
by Roquen
2013-04-25 03:47:31

2D Dynamic Lighting
by Oskuro
2013-04-18 07:46:12

2D Dynamic Lighting
by Oskuro
2013-04-18 07:45:57

2D Dynamic Lighting
by Oskuro
2013-04-18 07:23:20

Noise (bandpassed white)
by Roquen
2013-04-06 08:36:01

Noise (bandpassed white)
by Roquen
2013-04-04 07:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!