Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
Change tiles to 1x1
Browse files Browse the repository at this point in the history
  • Loading branch information
raywan committed May 28, 2019
1 parent ab251a5 commit 49e1049
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#define USE_GLOBAL_ILLUMINATION 1
#define NUM_PT_SAMPLES 1

#define TILE_X 16
#define TILE_Y 16
#define TILE_X 1
#define TILE_Y 1
#define NUM_THREADS 8

#endif
4 changes: 4 additions & 0 deletions src/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ void print_run_info() {
puts("Hello Rays.");
puts("========================================================================");
printf("NUM THREADS: %d\n", NUM_THREADS);
if (NUM_THREADS > 1) {
printf("TILE_X: %d\n", TILE_X);
printf("TILE_Y: %d\n", TILE_Y);
}
printf("WIDTH: %d\n", WIDTH);
printf("HEIGHT: %d\n", HEIGHT);
printf("MAX DEPTH: %d\n", MAX_DEPTH);
Expand Down
2 changes: 1 addition & 1 deletion src/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void construct_tiles(std::queue<Tile> *jq) {
for (int i = 0; i < num_tiles_w; i++) {
for (int j = 0; j < num_tiles_h; j++) {
Tile t;
t.top_right = rwm_v2_init(i*16, j*16);
t.top_right = rwm_v2_init(i*TILE_X, j*TILE_Y);
jq->push(t);
}
}
Expand Down

0 comments on commit 49e1049

Please sign in to comment.