as mentioned in my few previous posts, the rendering of my game is dog slow.
after i’ve posted the results of -Dsun.java2d.trace=count, i was told that the d3d\opengl pipeline isn’t enabled.
well, here are the results of -Dsun.java2d.trace=count now:
1696 calls to sun.java2d.loops.MaskBlit::MaskBlit(IntArgb, SrcOver, Ushort565Rgb)
1696 calls to sun.java2d.loops.Blit$GeneralMaskBlit::Blit(IntArgb, SrcOverNoEa, “D3D texture destination”)
36 calls to sun.awt.windows.Win32BlitLoops::Blit(“Short 565 RGB DirectDraw”, SrcNoEa, “Short 565 RGB DirectDraw”)
630 calls to sun.java2d.loops.MaskFill::MaskFill(AnyColor, Src, IntArgb)
41180 calls to sun.java2d.loops.Blit::Blit(Ushort565Rgb, SrcNoEa, IntArgb)
37 calls to sun.java2d.loops.Blit::Blit(IntRgb, SrcNoEa, IntArgb)
449 calls to sun.java2d.loops.MaskBlit$General::MaskBlit(Ushort565Rgb, SrcNoEa, IntArgb)
37 calls to sun.java2d.loops.MaskBlit::MaskBlit(IntArgb, AnyAlpha, IntArgbBm)
52 calls to sun.java2d.loops.DrawGlyphList::DrawGlyphList(OpaqueColor, SrcNoEa, AnyShort)
43 calls to D3DDrawRect
2625 calls to GDIFillShape
14 calls to sun.java2d.loops.Blit::Blit(IntRgb, SrcNoEa, Ushort565Rgb)
3 calls to GDIFillRect
37 calls to sun.java2d.loops.Blit$GeneralMaskBlit::Blit(IntRgb, SrcNoEa, IntArgbBm)
38006 calls to sun.java2d.loops.Blit::Blit(IntArgbBm, SrcOverNoEa, Ushort565Rgb)
9759 calls to DDFillRect
37 calls to sun.java2d.loops.MaskBlit$General::MaskBlit(IntRgb, SrcNoEa, IntArgbBm)
41 calls to GDIDrawShape
57 calls to sun.java2d.loops.DrawPolygons::DrawPolygons(OpaqueColor, SrcNoEa, AnyInt)
449 calls to sun.java2d.loops.MaskBlit::MaskBlit(IntArgb, AnyAlpha, IntArgb)
96884 total calls to 20 different primitives
as you can see by the line :“43 calls to D3DDrawRect” there are d3d calls. i thought this means the pipeline is enabled, isn’t it?