From e5f86a824a021ce7aef9bd96666931732543f6a1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Dec 2017 02:12:19 +1100 Subject: [PATCH] [client] switch back to atomic locking as the default The prior patch to correct the mouse loop resolves the CPU load issue with the atomic locking method. SDL mutexes are still available if desired but full mutex locking is far slower then fast spinlocks --- client/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Makefile b/client/Makefile index 5f988e77..9218f57b 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,5 +1,5 @@ BINARY = looking-glass-client -CFLAGS = -g -O3 -std=gnu99 -march=native -Wall -Werror -I./ -I../common -DDEBUG +CFLAGS = -g -O3 -std=gnu99 -march=native -Wall -Werror -I./ -I../common -DDEBUG -DATOMIC_LOCKING LDFLAGS = -lrt CFLAGS += -ffast-math