This may have been asked before, but for the life of me I can’t find a fix or workaround. I have an app in Windowed mode, using ManagedImages for sprites that are animated with a Canvas using a BufferStrategy of 3. It hums along just lovely at about 300 fps until the off chance that the mouse “lingers” over an icon or anything that has a tooltip. Once that tooltip pops up frame rate goes to hell even if my main java window still has the focus. Once the tooltip’s time is up and goes away everything returns to normal. Menus hurt performance quite a bit as well outside of the app, but java menus within the program don’t. I’m not too concerned with the menus hammering drawing, but the tooltips are everywhere, the system clock, the taskbar, etc.
I’ve tried adding sun.java2d.ddforcevram=true and sun.java2d.translaccel=true as well as any other obscure 2D argument I can find to my VM arguments and none seem to make any difference at all.
I am using WindowsXP and JDK 1.4.2_02-b03. The video card is an NVidia 5200 using the latest 52.16 drivers. I can post any of my souce code if you think it might help, but I am just using a pretty general, frame-limiting animation loop using the Perf timer that has been discussed pretty extensively here in the Java2D forum. Images are created using gConfig.createCompatibleImage(width, height, Transparency.OPAQUE) Is this a pretty common problem, or am I missing something obvious or doing something wrong?
Thanks for any ideas.