From c5f7a12cea063daeddb4815af9b0a658f931dea3 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sat, 23 May 2026 23:08:36 +0400 Subject: [PATCH 1/3] a --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 589a563..3ebed65 100644 --- a/.gitignore +++ b/.gitignore @@ -54,4 +54,7 @@ oclint/ steamworks/ build/ -.vscode \ No newline at end of file +.vscode + +test.sh +test2.sh From 66a1c4fbf15aeed49daa46db6e55677cbebd5afc Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sat, 23 May 2026 23:57:15 +0400 Subject: [PATCH 2/3] optimizations --- CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c731886..575f24a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,27 +6,25 @@ include(FindPackageHandleStandardArgs) option(STEAM "Build for Steam" OFF) set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/steamworks" CACHE PATH "Path to Steamworks folder") -option(DEBUG "Debug mode" ON) +option(DEBUG "Debug mode" OFF) set(SDLTTF_VENDORED ON) set(ZLIB_USE_STATIC_LIBS ON) -## Misc setup ## - set(CMAKE_INCLUDE_CURRENT_DIR ON) -# Debug stuff -# i want die if(DEBUG) + # Debug stuff if (MSVC) add_compile_options(/EHr /fsanitize /validate-charset /DEBUG /RTCu /RTCs /RTCc /guard:cf /GS) else() - add_compile_options(-g3 -O0 -fno-omit-frame-pointer -ggdb -Wall -fcheck-new -gbtf) + add_compile_options(-g3 -O0 -fno-omit-frame-pointer -ggdb -Wall -fcheck-new -gbtf -pipe) endif() else() # Optimization stuff if (MSVC) add_compile_options(/O2 /fp:fast /GL /GF /GA) else() - add_compile_options() + add_compile_options(-O3 -ffast-math -flto -pipe -funroll-loops -falign-functions=16 -falign-jumps=8 -falign-loops=8 -fno-common) + add_link_options(-Wl,-O2) endif() endif() ## Setup main source ## From 2f8e67929846411b28c38dc8effbd4c8c5267643 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Sat, 23 May 2026 23:58:37 +0400 Subject: [PATCH 3/3] Small changes --- CMakeLists.txt | 2 +- oneshot.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 575f24a..bf08778 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ include(FindPackageHandleStandardArgs) option(STEAM "Build for Steam" OFF) set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/steamworks" CACHE PATH "Path to Steamworks folder") -option(DEBUG "Debug mode" OFF) +option(DEBUG "Debug mode" ON) set(SDLTTF_VENDORED ON) set(ZLIB_USE_STATIC_LIBS ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) diff --git a/oneshot.conf b/oneshot.conf index 9d64d18..3dd6622 100644 --- a/oneshot.conf +++ b/oneshot.conf @@ -28,6 +28,7 @@ # 16:9 support # EXPEREMENTAL! # (default: disabled) +# # EnableSixteenByNine=false # Apply linear interpolation when game screen