aboutsummaryrefslogtreecommitdiff
path: root/salis.py
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-06-09 15:32:05 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-06-11 05:49:12 +0200
commit5d46c96cd93460b4d00eadf3b0237824ca297284 (patch)
tree41b9b77be530c6420a63e392ecb73d55d3e10609 /salis.py
parentcf7daaf435538c9848dfb0fb8dd0e5c9a4c74af2 (diff)
Adds final refinements to data client & server
Diffstat (limited to 'salis.py')
-rwxr-xr-xsalis.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/salis.py b/salis.py
index 1feb041..34795db 100755
--- a/salis.py
+++ b/salis.py
@@ -77,6 +77,7 @@ options = {
(("T", "keep-temp-dir"), (new, load, server, client), fmt_id): {"action": "store_true", "help": "keep temporary directory on exit", "required": False},
(("t", "thread-gap"), (new, load), fmt_hex): {"metavar": "N", "help": "memory gap between core elements in bytes; may help reduce cache misses", "default": 0x100, "required": False, "type": nat},
(("u", "ui"), (new, load), fmt_id): {"choices": uis, "help": "user interface", "default": "curses", "required": False, "type": str},
+ (("v", "no-vsync"), (client,), fmt_id): {"action": "store_true", "help": "disable vsync", "required": False},
(("x", "cpp-compiler"), (client,), fmt_id): {"metavar": "CXX", "help": "C++ compiler to use", "default": "g++", "required": False, "type": str},
(("X", "cpp-compiler-flags"), (client,), fmt_id): {"metavar": "FLAGS", "help": "base set of flags to pass to C++ compiler", "default": "-Wall -Wextra -Werror -pedantic -std=c++20 -lstdc++", "required": False, "type": str},
(("y", "sync-pow"), (new,), fmt_id): {"metavar": "POW", "help": "core sync interval exponent; sync events occur every N steps, where N = 2^{POW}", "default": 20, "required": False, "type": pos},
@@ -412,6 +413,10 @@ if args.command == "client":
ns.b = Build("core/client.cpp", log, cpp=True)
pop_net_vars()
pop_general()
+
+ if not args.no_vsync:
+ ns.b.defines.add("-DVSYNC")
+
ns.b.defines.add(f"-DIP=\"{args.ip}\"")
ns.b.links.add("-lGL")
ns.b.links.add("-lglfw")