mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
Better frame sheduling for smoothness
This commit is contained in:
@@ -31,9 +31,17 @@ debug: LDFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
debug: TARGET := $(TARGET_NAME)-debug
|
||||
debug: prepare
|
||||
|
||||
ifeq ($(shell uname -s), Darwin)
|
||||
# macOS / clang
|
||||
PLATFORM_LDFLAGS :=
|
||||
else
|
||||
# Linux / GCC (Pi or other)
|
||||
PLATFORM_LDFLAGS := -Wl,--gc-sections -Wl,--as-needed
|
||||
endif
|
||||
|
||||
release: BUILD_TYPE := release
|
||||
release: CXXFLAGS := -O3 -ffast-math -march=native -fno-plt -fno-rtti -flto -fdata-sections -ffunction-sections -DNDEBUG
|
||||
release: LDFLAGS += -O3 -ffast-math -march=native -Wl,--gc-sections -flto
|
||||
release: CXXFLAGS := -O2 -ffast-math -march=native -fno-plt -fno-rtti -flto -fdata-sections -ffunction-sections -ffunction-sections -fomit-frame-pointer -fvisibility=hidden -pipe -DNDEBUG
|
||||
release: LDFLAGS += -O2 -ffast-math -march=native -flto -Wl,-O1 $(PLATFORM_LDFLAGS)
|
||||
release: TARGET := $(TARGET_NAME)
|
||||
release: prepare
|
||||
|
||||
|
||||
Reference in New Issue
Block a user