fix: movement speed tied to frame rate

This commit is contained in:
2026-03-06 23:06:19 +08:00
parent d73d8e592d
commit b372d92858
4 changed files with 28 additions and 5 deletions

View File

@@ -12,6 +12,7 @@
#include <glm/gtc/type_ptr.hpp>
#include <Cubed/camera.hpp>
#include <Cubed/config.hpp>
#include <Cubed/gameplay/player.hpp>
#include <Cubed/tools/cubed_assert.hpp>
#include <Cubed/tools/log.hpp>
@@ -19,8 +20,6 @@
constexpr int numVAOs = 1;
constexpr int numVBOs = 3;
constexpr int WORLD_SIZE_X = 32;
constexpr int WORLD_SIZE_Z = 32;
bool blockPresent[WORLD_SIZE_X][WORLD_SIZE_Z] = {false};
GLuint renderingProgram;
GLuint vao[numVAOs];