I like to set my scientific simulation programs to generate a picture after a certain number of iterations, such that I can follow what is happening and maybe cancel the simulation before the initially planned iteration. The periodicity of the pictures must be such that they don't affect performance too much. Sometimes, I even create windows to enter the simulations' parameters.
I have already combined
- Fortran with C with OpenGL (the Fortran program generated a C/OpenGL code and executed it)
- Java with Java 2D or Java 3D with GUI created with Swing (NetBeans)
Java has the advantage of portability, but I don't know how slower than Fortran and C it is, because I wrote different programs with each of them.
Do you use another solution for real-time image printing or visualization between N [preferably high-performance] iterations?