doubled the amount of hair strands, and turned on compiler optimizations
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 27 Jan 2019 20:31:19 +0000 (22:31 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 27 Jan 2019 20:31:19 +0000 (22:31 +0200)
by default

Makefile
src/main.cc

index 3792df5..af21e38 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ dep = $(obj:.o=.d)
 bin = hair
 
 dbg = -g
-opt = -O0
+opt = -O3 -ffast-math
 inc = -Isrc -Isrc/shaders -Isrc/math
 CXX = g++
 CC = gcc
index 36fdeb8..ad3ba31 100644 (file)
@@ -12,7 +12,7 @@
 #include "hair.h"
 #include "object.h"
 
-#define MAX_NUM_SPAWNS 800
+#define MAX_NUM_SPAWNS 1600
 #define THRESH 0.5
 
 static bool init();