Better frame sheduling for smoothness

This commit is contained in:
Niellune
2026-03-27 23:41:40 +02:00
parent 79965af3e6
commit 74f039e36f
6 changed files with 45 additions and 49 deletions
+10 -2
View File
@@ -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