1
0
Fork 0
A toy raytracer that started to keep me busy during the French Robotics Cup 2019, when my support was not needed.
Find a file
Teo-CD 029f753bbf World: Re-use RectangleShapes for rendering
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.
2024-01-29 00:25:57 +00:00
.gitignore First commit, world map creation 2019-05-27 13:50:49 +02:00
CMakeLists.txt Clean-up: Change indentation to tabs 2024-01-28 22:08:35 +00:00
Color.h Colors: Introduce color type abstraction 2024-01-26 23:07:25 +00:00
LICENSE License as MIT 2023-12-30 14:56:26 +01:00
main.cpp World: Re-use RectangleShapes for rendering 2024-01-29 00:25:57 +00:00
Player.cpp Clean-up: Change indentation to tabs 2024-01-28 22:08:35 +00:00
Player.h Clean-up: Change indentation to tabs 2024-01-28 22:08:35 +00:00
World.cpp World: Re-use RectangleShapes for rendering 2024-01-29 00:25:57 +00:00
World.h World: Re-use RectangleShapes for rendering 2024-01-29 00:25:57 +00:00