Skip to content

An attempt to render block world (Minecraft-like) with raytracing

License

Notifications You must be signed in to change notification settings

kodo-pp/blocktrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocktrace

An attempt to render block world (Minecraft-like) with raytracing

Building

Requirements: meson, png++, sdl2pp

meson setup 'build' -Dbuildtype=release
cd build
ninja

Optimization

You can build this project with the following optimizations:

  • Use OpenMP to use multiple threads (enabled by default)
  • Use -Ofast -ffast-math compiler flags (disabled by default; may cause visual artifacts)

On my laptop the best performance is achieved by Clang with OpenMP and -Ofast -ffast-math enabled. To build the project in this configuration, pass the following parameters to meson: CXX=clang++ meson setup 'build' -Dbuildtype=release -Denable_openmp=true -Denable_ofast=true. Replace setup with configure if you have already set up your build directory earlier (or use another build directory).

Acknowledgements

About

An attempt to render block world (Minecraft-like) with raytracing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published