Logo by Trifox
News: FractalForums.com is a forum for Fractal related discussion - Share your own fractal images and fractal movies with us. 
Discuss fractal theory, IFS, Mandelbrot sets and any forms of fractal art!  Some of our users are teachers and professors -
some are high school students - some come along just for the ride - but all share an enthusiasm for all things Fractal related.
 
*
Welcome, Guest. Please login or register. January 07, 2009, 04:54:35 AM


Login with username, password and session length



Pages: 1 2 [3]
  Print  
Author Topic: endlos - A multithreaded fractal generator in Java  (Read 713 times)
0 Members and 1 Guest are viewing this topic.
lycium
Fractal Bachius
*
Posts: 523



View Profile WWW
« Reply #30 on: March 03, 2007, 06:22:37 PM »

a much better way to do your multithreaded processing is to have N worker threads do interleaved scanlines. there's plenty of parallelism to go around without resorting to splitting threaded work at the subpixel (!!) level; futhermore, unless there are extremely regular correlations in the image (causing different execution times) it should result in good (even) workload distribution. the threads do not share data at all and write to independent memory regions...

why on earth did you split it at the aa level?! Tongue this forces a square number of threads unless you get funky with precomputed antialiasing patterns (having toroidal symmetry), and since cpu cores come in powers of two usually that's 1, 4, 16, 64, etc., and each thread's results must then be gathered and combined, written again, ...

edit: i see the threading isn't relaeted to antialiasing at all, but the final image dimensions. interleaved threading will provide much better load balancing than blocked will, and when you add antialiasing into the mix (long render times...) it'll make a significant difference.
« Last Edit: March 03, 2007, 06:30:09 PM by lycium » Logged

dentaku2
Fractal Navigator
*****
Posts: 36



View Profile WWW
« Reply #31 on: March 05, 2007, 02:20:37 AM »

endlos V 0.20.0



Code:
2007-03-05 : Version 0.20.0 - threads & color functions
---------------------------

CHANGED:
  1. Coloring function "Function" renamed to "Function1". Migration: in you fractal XML
     files, rename value of <colorMode>:
     
     <colorMode>Function</colorMode>   to   <colorMode>Function1</colorMode>
     
  2. Misc. GUI changes.
  3. Thread count is not squared anymore. The image is now tiled into the exact number
     of threads. This leads to misc image tiling depending on the possible tile factors.

FIXED:
  1. Randomize colors didn't work for deep iterations.
  2. Demo fractal settings were reused so that once a demo fractal was changed,
     the new fractal hasen't used it's saved settings but the last changed.

NEW:
  1. Cycle through color maps with mouse wheel when mouse pointer is over color
     maps list.
  2. Eighteen new coloring functions.
  3. New post processing effects 'posterize', 'threshold', 'rotate'.
Logged

endlos - Platformindependend multithreaded fractal generator.
dentaku2
Fractal Navigator
*****
Posts: 36



View Profile WWW
« Reply #32 on: March 30, 2007, 08:25:21 AM »

Code:
2007-03-30 : Version 1.0.0 - 2D fractals
--------------------------

CHANGED:
  1. Default number of threads is number of (virtual) processors. On a dual core or a
     pentium with hyper threading this will be 2. This will use the theoretical optimal
     number of threads by default.
  2. Pause button replaced by CPU usage slider for fine grained system load.
     (0% same as former pause.)
Logged

endlos - Platformindependend multithreaded fractal generator.
Pages: 1 2 [3]
  Print  

 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
endlos Images Showcase (Rate My Fractal) dentaku 14 237 Last post March 21, 2007, 12:48:24 AM
by dentaku2
The Colarity fractal flame generator Announcements & News Nahee_Enterprises 1 566 Last post February 23, 2007, 12:42:12 PM
by Nahee_Enterprises
New Macintosh Fractal generator to try Announcements & News Duncan C 7 715 Last post March 11, 2007, 09:08:20 PM
by Duncan C
Java applet for exploring the Mandelbrot set Announcements & News Paton 5 365 Last post March 26, 2007, 06:03:34 PM
by Paton
Java Mandelbrot segment Help & Support fractalwizz 10 50 Last post December 29, 2008, 08:01:24 PM
by Trifox

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.311 seconds with 28 queries. (Pretty URLs adds 0.033s, 2q)