Login  Register

Re: Core dump on Solaris x86 with GLJPanel

Posted by Wade Walker on Apr 13, 2011; 1:26pm
URL: https://forum.jogamp.org/Core-dump-on-Solaris-x86-with-GLJPanel-tp2810533p2815978.html

The solution you described just sounds like good programming practice  Anytime you have a multithreaded program (which you do once there is an animator), you have to take special care, and since Java uses the native OS threads, they can behave differently on each platform.

For the kind of program you describe, where you only redraw on user action or model change (instead of constant redraw like in a videogame), I've always done those without an animator. I just use the windowing system's dirty region/paint event system, and do a GL render on the paint event. The FPS counter is only updated during rendering, so it stays at its last value until the user moves something again.