Changes

Jump to: navigation, search

TriForce

3,232 bytes added, 10:30, 8 March 2019
Assignment 1: Julia Sets
int * array = new int[height * width];
//Initial Julia Point value
float jI = -0.4f; float jR = 0.6f;
//for rotating the Julia point around the origin
float angle = 2.0f / ITER * PI; float cosA = cos(angle); float sinA = sin(angle);
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.
% cumulative self self total time seconds seconds calls msus/call msus/call name 95.74 91332.82 8096 332.04 80.04 96 calcJulia(int*, int, int, float, float) 2.28 8279 342.03 68 19.99 450000000 72 600000000 0.00 02 0.00 02 Bitmap::operator<<addColor(floatint, int, int) 2 1.12 8328 347.87 14 14.85 197791886 46 791167185 0.00 01 0.00 02 lerp(float, Pix&, Pix&, Bitmap&) 0.29 8444 348.12 66 01.25 52 createBMP(int*, int, int) 0.13 8401 348.23 69 0.11 03 100 1 250.10 184 250.10 84 Bitmap::Bitmap(char const*, int, int) 0.00 84 348.23 69 0.00 100 0.00 0.00 generateBitmapImage(unsigned char*, int, int, char const*) 0.00 84 348.23 69 0.00 100 0.00 0.00 createBitmapFileHeader(int, int, int) 0.00 84 348.23 69 0.00 100 0.00 0.00 createBitmapInfoHeader(int, int) 0.00 84 348.23 69 0.00 100 0.00 0.00 Bitmap::~Bitmap() 0.00 84 348.23 69 0.00 1 0.00 0.00 _GLOBAL__sub_I_main 
|}
{| class="wikitable mw-collapsible mw-collapsed"

Navigation menu