Skip to content

Commit d5c8f88

Browse files
committed
Document running options
1 parent 3a8c190 commit d5c8f88

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
# RayTracingWeekend
22

3-
Adapted from [Ray Tracing In One Weekend by Peter Shirley](https://raytracing.github.io/books/RayTracingInOneWeekend.html) and [cshenton's Julia implementation](https://github.com/cshenton/RayTracing.jl)
4-
3+
Adapted from [Ray Tracing In One Weekend by Peter Shirley](https://raytracing.github.io/books/RayTracingInOneWeekend.html)
54

65
![This final cell (bunch of spheres) runs in 3.2s](img/pluto_RayTracingWeekend_final_cell.png)
76

87
![Example of image generated by this code, and some Julia code using math characters](img/pluto_RayTracingWeekend.png)
98

109
![Final image of book 1 - random spheres](img/scene_random_spheres_1920x1080.png)
1110

11+
# Run
12+
13+
You have 2 options.
14+
15+
## pluto_RayTracingWeekend.jl
16+
17+
This is a Pluto.jl notebook, best suited for learning alongside (e.g. if you're a Julia beginner) or quick interactive experimentation. This self-contained version matches Peter Shirley's first book, "Raytracing in 1 weekend". See below (`Adapting C++ --> Julia`) for tips on how to start it, and how it differs from the C++ version.
18+
19+
## This module + src/proto/proto.jl
20+
21+
This is a short script that runs various tests and records historical timings on my Ryzen 3700 PC. It's best suited for benchmarking.
22+
23+
To run interactively with vscode:
24+
1. F1, `Julia: Start REPL`
25+
1. `] activate RayTracingWeekend`
26+
2. Open `src/proto/proto.jl`, press shift-enter to run lines, see plots.
1227

1328
# Implementation details
1429

@@ -28,7 +43,7 @@ If you're interested in the performance details and the latest optimizations, pl
2843

2944
https://github.com/GPSnoopy/RayTracingInOneWeekend
3045

31-
All perf tests were run on my Ryzen 2700 (not overclocked) on Ubuntu 20.04.
46+
All perf tests were run on my Ryzen 3700 (not overclocked) on Ubuntu 20.04.
3247

3348
## GPSnoopy's C++ implementation using GCC
3449

0 commit comments

Comments
 (0)