Hi,
I just noticed something really weird. Without any scaling, ie no AffineTransform scale transforms, performance for my J2D game is about 33 FPS. I recently made a zoom in & out feature that works by applying a scale to the Graphics object’s AffineTransform. After zooming, the FPS suddenly increases from 33 to 42, whether its zooming in or out. It doesn’t always happen straight away, but after zooming out or in a fair way it happens, even when I go back to the original scale factor.
If anybody knows why I’d really like to find out. Speculation is welcome too
Here’s some other info:
With a normal map that paints images, before scaling 33 FPS & 42 after.
A map that has no images, just Shapes that are filled with solid colours, before scaling 37 FPS & 37 after.
OGL pipeline (-Dsun.java2d.opengl=True): no difference
No directdraw option (-Dsun.java2d.noddraw=true): no difference
And with the following options:
-Dsun.java2d.ddscale=true
-Dsun.java2d.translaccel=true
-Dsun.java2d.ddforcevram=true
before scaling 33 FPS, after 3.
Cheers,
Keith
By the way, on my 2.8GHz dual core computer the no direct draw option surpisingly gives an FPS of 52 compared with only 33 FPS for the default no-options VM.