diff --git a/fallingCand b/fallingCand index 5db11e8..a89e0c5 100755 Binary files a/fallingCand and b/fallingCand differ diff --git a/gl_utils.c b/gl_utils.c index 9993480..24fd4d9 100644 --- a/gl_utils.c +++ b/gl_utils.c @@ -175,6 +175,6 @@ GLFWwindow* init_glfw_glad(const char* title, int width, int height) { glfwTerminate(); return NULL; } - + glfwSwapInterval(0); return window; } diff --git a/main.c b/main.c index 9e2f77f..445a967 100644 --- a/main.c +++ b/main.c @@ -4,8 +4,8 @@ #include "gl_utils.h" #include "sand_sim.h" -#define GRID_W 1024 -#define GRID_H 1024 +#define GRID_W 2048 +#define GRID_H 2048 static int g_fbWidth = 800; static int g_fbHeight = 800; SandSim sim; @@ -88,7 +88,7 @@ int main(void) { glUseProgram(program); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - double sim_dt = 1.0 / 120.0; + double sim_dt = 1.0 / 360.0; double currentTime = glfwGetTime(); double accumulator = 0.0;