First of all I would like to thank all people posting on the performance improvements of the Mandelbrot Explorer on multicore systems. Jeffrey Olson's tables are indeed impressive (and appreciated. Thanks Jeffrey!!). Regarding the hyperthreading question I assume hyperthreading gains are observable if one of the threads is waiting (for instance in an I/O operation) so the other thread can benefit of the CPU core. Dual core systems are more performant, of course, and true multi-processor ones may be even more performant.
I think little people know that Java allows you to use custom fonts

in your GUIs. Well, most of the time you'd better use the JVM's built-in fonts because you're sure those are UTF-8 fonts. So by using the built-in fonts you are safe with foreign languages and weird symbols.
Anyway there're some exceptions to the rule and Mandelbrot explorer is one of these. I've downloaded a freeware font from the Internet and bundled it in the jar files of the Mandelbrot explorer. A little magic:
URL url = InfoPane.class.getResource("fonts/LCD-U___.TTF");
if ( url != null )
{
try
{
InputStream input = new BufferedInputStream( url.openStream(), 4*1024 );
LCDFont = Font.createFont( Font.TRUETYPE_FONT, input ).deriveFont(34.0f);
input.close();
}
catch( Exception e )
{
LCDFont = new java.awt.Font("DialogInput", Font.BOLD, 24);
}
}
loads the font for me and I'm all set.
In this new release of the Mandelbrot explorer I've solved some bugs (regarding progress computations), so I think it's safe to release the source code too. It's a little bit more documented than the previous one too. Any questions are welcome.
source and JDK 5.0 Java WebStart demo available as well.
Happy Swinging,
Antonio
Enviado por Alan Burlison en septiembre 05, 2005 a las 11:37 PM CEST #
Thanks, Antonio
Enviado por Antonio en septiembre 06, 2005 a las 09:52 AM CEST #
Enviado por Antonio en septiembre 06, 2005 a las 11:11 AM CEST #
Enviado por Jeffrey Olson en septiembre 06, 2005 a las 05:50 PM CEST #