Major speed up in rendering by only doing it when we move, but drawing the rendered 3d view texture constantly.

This commit is contained in:
Zed A. Shaw 2025-02-21 11:34:46 -05:00
parent 0260e3d345
commit b43553a563
7 changed files with 39 additions and 17 deletions

View file

@ -11,6 +11,7 @@ namespace gui {
class MainUI {
public:
bool $needs_render = true;
Point $player{0,0};
Stats $stats;
sf::RenderWindow& $window;
@ -26,9 +27,9 @@ namespace gui {
void draw_stats();
void draw_blood();
std::optional<Point> play_move();
void plan_rotate(int dir);
bool play_rotate();
std::optional<Point> play_move();
Point plan_move(int dir, bool strafe);
void abort_plan();