~/talk

Raytracer in Python

TalkinRussianat PiterPy 2023 · 2023-11-07..11-14· [python, creative-coding]
links:none on file
slides:none on file

Aleksey compares performance of a Rust raytracer (rendering a 200×400 image in 13.37 seconds on his laptop) with implementations written in Python. He explains techniques and approaches used to speed up a Python raytracer to try to approach the Rust performance, focusing on practical optimizations and tools for Python.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51Speaker background
  3. 5:47Python for raytracing
  4. 7:17How raytracing works
  5. 9:03Drawing spheres and intersections
  6. 12:17Adding reflections
  7. 14:47Matte surfaces and randomness
  8. 16:16Image smoothing
  9. 17:45Ray antialiasing
  10. 18:27First pure Python version
  11. 19:57Python vs Rust speed
  12. 21:46Debugging a bug
  13. 22:28NumPy optimization
  14. 24:35Code vectorization
  15. 26:34Vectorized implementation
  16. 28:43Optimization results
  17. 29:28Numba attempt
  18. 30:35Summary
  19. 31:20Language combination
  20. 32:24Future possibilities
  21. 33:06Learning recommendations
  22. 33:46Thanks and closing
  23. 34:08Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.