Logo by Trifox - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. April 24, 2024, 04:32:28 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 [2]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: QUICK Octal and Hex Fractals  (Read 3096 times)
0 Members and 1 Guest are viewing this topic.
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #15 on: January 23, 2007, 01:52:48 AM »

So, if we talk about speed, how long did your images take? (My generator: (root Mandelbrot, 800x600, 100 iterations, exponent = 500): 28 seconds.)

Do you mean for a quaternion in 3D, or the standard 2D Mandelbrot ?

I don't have a formula of my own that does 2D quaternions - though I think there are a couple in the Ultrafractal formula collection.

Benchmarking 3D in different software is fairly impossible since the viewpoint/angles/perspective/detail level etc. would all have to be the same.

For the standard 2D complex z^500+c in Ultrafractal with periodicity checking off and maxiter=100 for an exponent of 500 at 800*600 I get a time of under 5 seconds on my 3GHz P4 and I'm sure Ultrafractal uses the log method (as evidenced by the fact that I get roughly the same time for an exponent of 500.01).
You can obviously test this in Ultrafractal yourself on the same machine you did your timing on.

Out of interest I tried the default Quaternionic z^500+c * in 3D * at 800*600 on my 3GHz system using my older (very un-optimised 3D formula) and got a time of 2m 8s when the 500 is treated as fully quaternionic (i.e. as if the 3 imaginary components of the exponent are significant) and 1m 52s when it's treated as a real (i.e. assuming the 3 imaginary components are zero). It should be noted that these two times are 5* as slow as they should be due to 5 rays being cast per screen pixel to get the lighting normals (because I implimented the formula in UF so you could see the fractal as it is drawn and so there wouldn't be an issue with producing very large renders).
The current 3D formulas I'm working on are the aforementioned 5* faster due to only casting one ray per pixel plus around another 2* to 3* faster (for the same detail) due to using proper distance estimation in the ray tracing.

« Last Edit: January 23, 2007, 01:55:46 AM by David Makin » Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Nahee_Enterprises
World Renowned
Fractal Senior
******
Posts: 2250


use email to contact


nahee_enterprises Nahee.Enterprises NaheeEnterprise
WWW
« Reply #16 on: January 26, 2007, 11:11:10 AM »

So, if we talk about speed, how long did your images take?
(My generator: (root Mandelbrot, 800x600, 100 iterations, exponent = 500): 28 seconds.)

two points to make here:
  • experience tells that you should really not mention speed in this thread
    (even if it's about assembly language and integers)
  • to give a benchmark without so much as a machine spec is wholly useless smiley

Yes, the "speed" is definitely relative.
Logged

dentaku2
Guest
« Reply #17 on: January 27, 2007, 02:55:38 PM »

Well, this thread is about speed, right? And I find it pretty useless talking about performance/speed if noone posts examples of their algorithms on their hardware/software configuration. Just to give an idea about what improvement can be achieved using this algorithm in favour of the other.
Logged
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #18 on: January 27, 2007, 03:43:18 PM »

Well, this thread is about speed, right? And I find it pretty useless talking about performance/speed if noone posts examples of their algorithms on their hardware/software configuration. Just to give an idea about what improvement can be achieved using this algorithm in favour of the other.


I think there are really just 2 algorithms being discussed - one can be either CPU arithmetic or FPU, the other only FPU.

The CPU/FPU version is where say z^16 is optimised as ((z^2)^2)^2 etc.
The FPU version is z^p optimised as exp(p*log(z)) for cases where the first method doesn't apply (e.g. p complex or fractional) and when p is a larger integer - the point at which the second method is optimum in the latter case depends on the compiler and the CPU/FPU combination that the code is run on so it's best to impliment both methods yourself and test which is best - in the case of Java code this test should be done at run-time.
When I wrote MMFrac I didn't bother with powers beyond 10 so even though using FPU code I didn't bother with the exp/log method.
I believe Ultrafractal chooses the optimum method depending on the value of the power but always calculates using FPU code - though I'm not altogether sure that the extended precision mode is FPU (or solely FPU).
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #19 on: January 27, 2007, 10:34:14 PM »

Oops - should have said that I think Ultrafractal decides on the method to use at compile time (which in UF is when you choose a formula or change a user parameter).
Also I said that Java needs to choose at runtime (prior to executing the main code) as the optimum method will vary depending on the host CPU/FPU.
« Last Edit: January 28, 2007, 02:53:06 AM by David Makin » Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
QUICK help needed, interpolation of cube to circle ? or vice versa? Mandelbulb 3d cKleinhuis 8 672 Last post June 04, 2013, 11:37:05 PM
by Madman
Octal-02b XenoDream Gallery Nahee_Enterprises 0 626 Last post September 25, 2013, 10:03:07 AM
by Nahee_Enterprises
Quick formula question Mandelbulb 3d Glitchraptor 8 1675 Last post March 20, 2015, 10:51:44 PM
by DarkBeam
Quick question about initializing variables Fragmentarium Patryk Kizny 4 924 Last post August 24, 2015, 07:50:12 PM
by Patryk Kizny
Quick and dirty: A DLA variation Fractals Applied or in Nature Max Sinister 12 4845 Last post August 29, 2016, 12:01:40 AM
by Softology

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

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