Weird GUI flickering in OSX applet

I’ve got this weird flickering going in on the Nifty GUI for my game, but only when run as an applet on OSX. It seems to happen on OSX 10.6 or 10.7 with any of the three latest versions of java 1.6, but only on some machines. On other machines it works fine. Note that the GUI does not flicker (i.e. it works correctly) when run straight up from java (i.e. “java -jar forestrunner.jar” from the command line).



Here is a video demonstrating the problem: http://youtu.be/8q2HYf4rdlM



Note that, while the gui is flickering, the rest of the game is rendered without a problem. I tried enabling VSync and that did not help.



Also, the GUI does not flicker in the applet when run from Windows or on Linux and Some mac machines.



There are no exceptions reported in the java console when running the applet.



Does anyone know why this might be happening and how I can fix it?



Thanks

Any correlation with the OSX affected? Video cards maybe?

1 Like

I’m working on getting more data points but so far:



[java]

machine osx version java version gfx card flickers?






a 10.7.3 1.6.0_31 Nvidia GeForce 7300 GT yes
b 10.7.3 1.6.0_31 Nvidia GeForce GT 330M no
c 10.6.8 1.6.0_31 ATI Raedon HD 6750M no
d 10.6.8 1.6.0_31 ATI Raedon HD 6750M no
[/java]