| 1 | # Using space-filling curves |
| 2 | |
| 3 | Demo using PeanoCurve and HilbertCurve. They are space-filling curves, useful to implement ray-tracers, if you want to best use caching on the ray-tracer side (that works best if each rendered pixel is adjacent to previous). |
| 4 | |
| 5 | This is deprecated -- because ray-tracers, esp. CPU ray-tracers, are not the focus of Castle Game Engine. And these space-filling curves didn't actually achieve much noticeable benefit anyway. |
| 6 | |
| 7 | Using [Castle Game Engine](https://castle-engine.io/). |
| 8 | |
| 9 | ## Building |
| 10 | |
| 11 | Compile by: |
| 12 | |
| 13 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 14 | |
| 15 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 16 | |
| 17 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `cars_demo_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |