From 733da0f4d5b7fec5e675954b596fa962e3dcffe6 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 7 Dec 2019 20:35:17 +0200 Subject: [PATCH] nyx: Remove compiler flags to gain extra perf - Removing no-inline produces 30-50% performance gains on specific real time sensitive functions used for rendering. On overall, this will give 5-10% observed performance gains. - Strict aliasing produces some extra small gains. --- nyx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/Makefile b/nyx/Makefile index a7c57de..31a58f5 100644 --- a/nyx/Makefile +++ b/nyx/Makefile @@ -84,7 +84,7 @@ CUSTOMDEFINES += -DBL_VER_MJ=$(BLVERSION_MAJOR) -DBL_VER_MN=$(BLVERSION_MINOR) - #CUSTOMDEFINES += -DDEBUG ARCH := -march=armv4t -mtune=arm7tdmi -mthumb-interwork -CFLAGS = $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -fno-strict-aliasing -std=gnu11 -Wall $(CUSTOMDEFINES) +CFLAGS = $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall $(CUSTOMDEFINES) CFLAGS += -g LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections -Xlinker --defsym=NYX_LOAD_ADDR=$(NYX_LOAD_ADDR)