The call to vbLock is made from the EDT isn't it, so won't that slow down the whole Swing application? I tried the demo on a few machines and on the older ones using the vbLock option caused a noticeable increase in the CPU usage.
I don't suppose this is easily offloadable to a background thread but perhaps some alignment of the animation rate and the monitor's refresh rate could help reduce the impact. |