summaryrefslogtreecommitdiffstats
path: root/balls.cl
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-02 19:36:40 -0400
committerSam Anthony <sam@samanthony.xyz>2024-11-02 19:36:40 -0400
commit13ccfb3728eb3dc3a6a5294a8f8754b3c5cbc903 (patch)
tree44696026cf15448edba5586b6372e53354d19980 /balls.cl
parente88035b16d88308e0604119879e078af7ac56d01 (diff)
downloadballs-13ccfb3728eb3dc3a6a5294a8f8754b3c5cbc903.zip
frame pacing
Diffstat (limited to 'balls.cl')
-rw-r--r--balls.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/balls.cl b/balls.cl
index 6d015fb..05d155c 100644
--- a/balls.cl
+++ b/balls.cl
@@ -1,5 +1,5 @@
-#define G_FACTOR 3600.0f
-#define G (9.81f / G_FACTOR)
+#define FPS 60.0f
+#define G (9.81f / FPS / FPS)
#define DENSITY 1500.0f
float mass(float radius);