Skip to content

m42a/gorays

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gorays

Go based Raytracer inspired from:

The C++ version (ref/rays.cpp) is optimized and mutli-threaded.

List of all Go optimizations applied: https://kidoman.com/programming/go-getter.html Second run with C++ optimized: https://kidoman.com/programming/go-getter-part-2.html

How to use

Go version

  • go get -u github.com/kid0m4n/gorays
  • time gorays > gorays.ppm
  • open gorays.ppm (helps to have Gimp installed)

C++ version

  • c++ -std=c++11 -O3 -pthread -o crays ref/rays.cpp
  • time ./crays > crays.ppm
  • open crays.ppm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 53.6%
  • Go 46.4%