Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68f9fe8

Browse files
committed
fixed random seed and lighter simulation for benchmarking
1 parent 9cfe7a2 commit 68f9fe8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

image.png

1.51 MB
Loading

src/InOneWeekend/main.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,15 @@ hittable_list random_scene() {
9494

9595

9696
int main() {
97+
srand(42);
9798

9899
// Image
99100

100101
const auto aspect_ratio = 16.0 / 9.0;
101102
const int image_width = 1200;
102103
const int image_height = static_cast<int>(image_width / aspect_ratio);
103-
const int samples_per_pixel = 10;
104-
const int max_depth = 50;
104+
const int samples_per_pixel = 2;
105+
const int max_depth = 25;
105106

106107
// World
107108

0 commit comments

Comments
 (0)