112
edits
Changes
TriForce
,→Assignment 1: Julia Sets
int * array = new int[height * width];
//Initial Julia Point value
//for rotating the Julia point around the origin
for(int i = 0; i < ITER; i++){
calcJulia(array, width, height, jI, jR);
* jR, jI: values of the julia set
* exits when |s| > 2 or reached MAXCYCLES
* return the exit escape valueor MAXCYCLES
*/
int calcDepth(float sR, float sI, const float jR, const float jI){
|-
|
Width: 750 Height: 500
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ns/call ns/call name
96.00 20.87 20.87 calcJulia(int*, int, int, float, float)
2.08 21.32 0.45 37500000 12.04 12.04 Bitmap::addColor(int, int, int)
1.75 21.70 0.38 49447183 7.71 16.84 lerp(float, Pix&, Pix&, Bitmap&)
0.46 21.80 0.10 createBMP(int*, int, int)
0.00 21.80 0.00 100 0.00 0.00 generateBitmapImage(unsigned char*, int, int, char const*)
0.00 21.80 0.00 100 0.00 0.00 createBitmapFileHeader(int, int, int)
0.00 21.80 0.00 100 0.00 0.00 createBitmapInfoHeader(int, int)
0.00 21.80 0.00 100 0.00 0.00 Bitmap::Bitmap(char const*, int, int)
0.00 21.80 0.00 100 0.00 0.00 Bitmap::~Bitmap()
0.00 21.80 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
Width: 1500 Height: 1000
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls us/call us/call name
97.05 84.67 84.67 calcJulia(int*, int, int, float, float)
1.66 86.12 1.45 150000000 0.01 0.01 Bitmap::addColor(int, int, int)
1.12 87.09 0.97 197791886 0.00 0.01 lerp(float, Pix&, Pix&, Bitmap&)
0.37 87.41 0.32 createBMP(int*, int, int)
0.01 87.42 0.01 100 50.17 50.17 Bitmap::Bitmap(char const*, int, int)
0.00 87.42 0.00 100 0.00 0.00 generateBitmapImage(unsigned char*, int, int, char const*)
0.00 87.42 0.00 100 0.00 0.00 createBitmapFileHeader(int, int, int)
0.00 87.42 0.00 100 0.00 0.00 createBitmapInfoHeader(int, int)
0.00 87.42 0.00 100 0.00 0.00 Bitmap::~Bitmap()
0.00 87.42 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
Width: 2250 Height: 1500
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls us/call us/call name
96.39 189.55 189.55 calcJulia(int*, int, int, float, float)
1.89 193.27 3.72 337500000 0.01 0.01 Bitmap::addColor(int, int, int)
1.49 196.20 2.93 445028641 0.01 0.01 lerp(float, Pix&, Pix&, Bitmap&)
0.45 197.09 0.89 createBMP(int*, int, int)
0.01 197.11 0.02 100 150.51 150.51 Bitmap::Bitmap(char const*, int, int)
0.00 197.11 0.00 100 0.00 0.00 generateBitmapImage(unsigned char*, int, int, char const*)
0.00 197.11 0.00 100 0.00 0.00 createBitmapFileHeader(int, int, int)
0.00 197.11 0.00 100 0.00 0.00 createBitmapInfoHeader(int, int)
0.00 197.11 0.00 100 0.00 0.00 Bitmap::~Bitmap()
0.00 197.11 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
Width: 3000 Height: 2000
Flat profile:
Each sample counts as 0.01 seconds.
|}
{| class="wikitable mw-collapsible mw-collapsed"