chunk: make chunk size 32
slight increase in fps with no great increase in ram usage, with greater render distancepull/1/head
parent
0acb8c7c1e
commit
2f9b7cebcd
|
@ -17,7 +17,7 @@ public:
|
|||
view = glm::mat4(1.0f);
|
||||
|
||||
// This matrix needs to be also updated in viewPortCallback whenever it is changed
|
||||
projection = glm::perspective(glm::radians(90.0f), 800.0f / 600.0f, 0.1f, 200.0f);
|
||||
projection = glm::perspective(glm::radians(90.0f), 800.0f / 600.0f, 0.1f, 1200.0f);
|
||||
}
|
||||
|
||||
void update(GLFWwindow *window, float deltaTime)
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
|
||||
void viewPortCallBack(GLFWwindow *window, int width, int height)
|
||||
{
|
||||
projection = glm::perspective(glm::radians(80.0f), (float)width / (float)height, 0.1f, 350.0f);
|
||||
projection = glm::perspective(glm::radians(80.0f), (float)width / (float)height, 0.1f, 1200.0f);
|
||||
}
|
||||
|
||||
void mouseCallback(GLFWwindow *window, double xpos, double ypos)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "intervalmap.hpp"
|
||||
#include "shader.hpp"
|
||||
|
||||
#define CHUNK_SIZE 16
|
||||
#define CHUNK_SIZE 32
|
||||
#define CHUNK_VOLUME (CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE)
|
||||
#define CHUNK_MAX_INDEX (CHUNK_VOLUME - 1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue