summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-18 23:11:29 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-18 23:11:29 -0400
commit8c5f06c37f3c267ecd8f867cd49765c366b5f47c (patch)
treef8ec31daa1e050c0f5205d32cebe68ce5df65f6f /build.sh
parent9062e0aae9f2f576b7a237c28028aa6b09feee5e (diff)
many additions
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 177dc3f..74f1435 100755
--- a/build.sh
+++ b/build.sh
@@ -5,6 +5,8 @@ IMGUI=0 # Compile ImGui libs. Our custom ImGui functions still compi
THREADED=1 # Compile with threading. Useful to disable when stepping through the renderer.
WINDOWS=0 # Compile for Windows with Mingw.
ARM=0 # Compile on ARM machines.
+PACKEDRGB=0 # Use 4x4 chunks for the software rasterizer.
+PERF=0 # Print cycle stats.
FFMPEG_LIBS="
libavdevice
@@ -60,6 +62,12 @@ ADDITIONAL_FLAGS="
-march=native
"
fi
+if [[ "$PACKEDRGB" == 1 ]]; then
+WARNING_FLAGS="$WARNING_FLAGS -DPACKEDRGB=1"
+fi
+if [[ "$PERF" == 1 ]]; then
+WARNING_FLAGS="$WARNING_FLAGS -DPERF=1"
+fi
if [[ "$OSTYPE" =~ ^darwin ]]; then
IMGUI_FLAGS="