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

@ -248,6 +248,9 @@ namespace gui {
case KEY::Escape:
event(Event::CLOSE);
break;
case KEY::Space:
event(Event::ATTACK);
break;
case KEY::P:
$main_ui.debug();
break;
@ -259,9 +262,9 @@ namespace gui {
}
void FSM::draw_gui() {
$main_ui.draw();
$status_ui.draw($window);
$combat_ui.draw($window);
$main_ui.draw();
}
void FSM::render() {