In a single-player java2d game i’m making (first time) im getting disgusting rates of 5 frames per second when the current view is graphics-intensive, which slows the character to a crawl… I thought that the Images I had were ManagedImages since they were created through Component’s createImage() but apparently these aren’t fast enough. How can I squeeze better performance out of my java2d-based engine?
Arn’t you meant to use createCompatibleImage() to get managed images?
Kev
You may be using some operation which is not accelerated, like translucency, compositing, antialiasing. Do a search on Java2D forum, there’s plenty of threads covering this topic.
[quote]You may be using some operation which is not accelerated, like translucency, compositing, antialiasing. Do a search on Java2D forum, there’s plenty of threads covering this topic.
[/quote]
Finding out what is or isn’t accelerated (or in the case of printing what causes the system to revert to using a big bitmap for the whole page) is something like playing a MUD. At least we get to cooperate, but it is way too hard to track down the details.
Maybe should create a wiki for detailing that?
Please fill out the information (provided by Abuse) that I started adding at “java2d” wiki page - someone good at wiki’s should probably categorise it a bit better than I did too ;D
i AM using translucency… isn’t there any accelerated translucency i can switch to?