Finally got it working in appletviewer, and profiled it.
Now I remember why I dislike trying to tune Java
Results:
[quote]1 [root] 0 ( 0%) 2495 (100%)
2 void Thread.run () 0 ( 0%) 2410 ( 96%)
3 void WToolkit.run () 1 ( 0%) 2101 ( 84%)
4 void WToolkit.eventLoop () 2100 ( 84%) 2100 ( 84%)
5 void CSApplet.run () 1 ( 0%) 274 ( 10%)
6 boolean CSApplet.render () 0 ( 0%) 148 ( 5%)
7 boolean DrawImage.copyImage (SunGraphics2D, Image, int, int, int, int, int, int, Color, ImageObserver) 0 ( 0%) 145 ( 5%)
[/quote]
So… 10% spent in my applets run, and 84% in WToolkit.eventloop.
After a fruitless morning googling for what this might be, I have come to the conclusion that either:
a) The profiler is lying.
b) Its telling the truth, and noone knows what this eventloop is doing or how to get it to stop
What is most disturbing is that it runs at exactly the same speed ( 30fps and it should be 50fps) on my 2.4GHz machine, AND on the PII 400MHz low spec machine!! Much wierdness…
Any help in understanding what is goping on would be greatly appreciated