A toy raytracer that started to keep me busy during the French Robotics Cup 2019, when my support was not needed.
Teo-CD
029f753bbf
sf::RectangleShapes were created brand new each frame, which takes a lot of time. Instead, keep an array of them available and update them instead of creating new ones. This also allows a nice optimization of only updating them if needed, by checking their previous value. Update the available number of rects when the window resizes. |
||
---|---|---|
.gitignore | ||
CMakeLists.txt | ||
Color.h | ||
LICENSE | ||
main.cpp | ||
Player.cpp | ||
Player.h | ||
World.cpp | ||
World.h |