mirror of
https://github.com/DoubleGhosty/cool_fox.git
synced 2026-12-06 08:38:35 +00:00
87 lines
5.0 KiB
Batchfile
87 lines
5.0 KiB
Batchfile
@echo off
|
|
setlocal EnableExtensions DisableDelayedExpansion
|
|
rem The title's folder: VICTORY_GAME_DIR, else game_dir in victory.toml.
|
|
set "_cfg_game_dir="
|
|
if not defined VICTORY_GAME_DIR if exist "%~dp0victory.toml" (
|
|
for /f "usebackq eol=# tokens=1,* delims==" %%A in ("%~dp0victory.toml") do (
|
|
for /f "tokens=1" %%K in ("%%A") do if /i "%%K"=="game_dir" (
|
|
for /f "tokens=* delims= " %%V in ("%%B") do set "_cfg_game_dir=%%~V"
|
|
)
|
|
)
|
|
)
|
|
if defined _cfg_game_dir set "VICTORY_GAME_DIR=%_cfg_game_dir:'=%"
|
|
if not defined VICTORY_GAME_DIR (
|
|
echo Set VICTORY_GAME_DIR or game_dir in victory.toml to the folder containing your title executable. 1>&2
|
|
exit /b 2
|
|
)
|
|
if not exist "%VICTORY_GAME_DIR%\game_scarlett_master.exe" (
|
|
echo game_scarlett_master.exe not found in VICTORY_GAME_DIR: "%VICTORY_GAME_DIR%" 1>&2
|
|
exit /b 2
|
|
)
|
|
set "runner=%~dp0target\release\victory.exe"
|
|
if not exist "%runner%" set "runner=%~dp0victory-3d-rtx-pareto-residency.exe"
|
|
if not exist "%runner%" (
|
|
echo victory.exe not found: build it first with cargo build --release --locked -p victory ^(see README.md^). 1>&2
|
|
exit /b 2
|
|
)
|
|
|
|
if not defined VICTORY_CACHE_DIR set "VICTORY_CACHE_DIR=C:\Whiplash\cache"
|
|
if not defined VICTORY_DATA_DIR set "VICTORY_DATA_DIR=C:\Whiplash\data"
|
|
if not defined VICTORY_AMBIENT_AIR set "VICTORY_AMBIENT_AIR=1.5"
|
|
if not defined VICTORY_AMBIENT set "VICTORY_AMBIENT=0.8"
|
|
if not defined VICTORY_TEXTURE_NO_WAIT set "VICTORY_TEXTURE_NO_WAIT=1"
|
|
if not defined VICTORY_RELAY set "VICTORY_RELAY=2"
|
|
if not defined VICTORY_WIDE_BACK set "VICTORY_WIDE_BACK=1"
|
|
if not defined VICTORY_CARD_REHASH_RUNS set "VICTORY_CARD_REHASH_RUNS=1"
|
|
if not defined VICTORY_JOIN_COPIES set "VICTORY_JOIN_COPIES=1"
|
|
if not defined VICTORY_INDIRECT_WINDOW set "VICTORY_INDIRECT_WINDOW=1"
|
|
if not defined VICTORY_RELAY_COPY set "VICTORY_RELAY_COPY=1"
|
|
if not defined VICTORY_CARD_STEPS set "VICTORY_CARD_STEPS=2"
|
|
if not defined VICTORY_INDIRECT_BATCH set "VICTORY_INDIRECT_BATCH=2"
|
|
if not defined VICTORY_MAP_THREADS set "VICTORY_MAP_THREADS=1"
|
|
if not defined VICTORY_TITLE_PRIORITIES set "VICTORY_TITLE_PRIORITIES=0"
|
|
if not defined VICTORY_CARD_AWAKE set "VICTORY_CARD_AWAKE=1"
|
|
if not defined VICTORY_SHOW_AFTER set "VICTORY_SHOW_AFTER=1"
|
|
if not defined VICTORY_THIN set "VICTORY_THIN=1"
|
|
if not defined VICTORY_JOIN_PARTS set "VICTORY_JOIN_PARTS=8"
|
|
if not defined VICTORY_LIBRARY_STORE_LATER set "VICTORY_LIBRARY_STORE_LATER=1"
|
|
if not defined VICTORY_PIPELINE_WAIT_MS set "VICTORY_PIPELINE_WAIT_MS=0"
|
|
if not defined VICTORY_PORT_GUARD set "VICTORY_PORT_GUARD=1"
|
|
if not defined VICTORY_PORT_JOURNAL set "VICTORY_PORT_JOURNAL=1"
|
|
if not defined VICTORY_PORT_CONSTANTS set "VICTORY_PORT_CONSTANTS=0"
|
|
if not defined VICTORY_PORT_CBV set "VICTORY_PORT_CBV=1"
|
|
if not defined VICTORY_UPLOAD_AHEAD set "VICTORY_UPLOAD_AHEAD=1"
|
|
if not defined VICTORY_LEVELS_ON_DEMAND set "VICTORY_LEVELS_ON_DEMAND=1"
|
|
|
|
:: 4 GB VRAM tuning
|
|
if not defined VICTORY_CARD_BUFFERS_MIN_KB set "VICTORY_CARD_BUFFERS_MIN_KB=4096"
|
|
if not defined VICTORY_CARD_BUFFERS_MB set "VICTORY_CARD_BUFFERS_MB=256"
|
|
rem Default 3072 MB reserved for render targets — leaves ~1 GB for textures on 4 GB VRAM. 1024 gives the texture queue more headroom.
|
|
if not defined VICTORY_CARD_ROOM_FOR_TARGETS_MB set "VICTORY_CARD_ROOM_FOR_TARGETS_MB=1024"
|
|
rem Skip write-back of shader writes in WC copies >= 1 MB: saves ~360 MB/frame of compare/fetch/merge (VIctory-NVIDIA).
|
|
if not defined VICTORY_WC_NO_BACK set "VICTORY_WC_NO_BACK=1"
|
|
if not defined VICTORY_WC_NO_BACK_MIN_KB set "VICTORY_WC_NO_BACK_MIN_KB=1024"
|
|
if not defined VICTORY_D3D12_BACKGROUND set "VICTORY_D3D12_BACKGROUND=0"
|
|
rem The title ends itself (a write to 0 at +0x23cf683) when its main loop has
|
|
rem not ticked for 30 s, as while its first frames wait for their compute
|
|
rem pipelines: while bit 0 of title+0x71b6330 is set its watchdog starts over.
|
|
if not defined VICTORY_POKE set "VICTORY_POKE=b99f876b74d4a77f@71b6330:1"
|
|
rem FSR4 NewBE fallback crashes (null write at +0x23cf683) on this build: use the title's own upscaler.
|
|
if not defined VICTORY_UPSCALER set "VICTORY_UPSCALER=6"
|
|
rem Render at half resolution and upscale: needed for 4 GB cards to reach playable framerates.
|
|
if not defined VICTORY_RENDER_SCALE set "VICTORY_RENDER_SCALE=0.5"
|
|
if not defined VICTORY_OUTPUT set "VICTORY_OUTPUT=1280x720"
|
|
if not defined VICTORY_PIPELINE_BOOK set "VICTORY_PIPELINE_BOOK=1"
|
|
rem Last-resort wave-wide lowering for compute shaders that reject every other
|
|
rem wave64->wave32 form: two host wave32s run as one console wave64, exchanging
|
|
rem lanes. Without this, 3 compute shaders drop all their dispatches every frame.
|
|
if not defined VICTORY_WAVE_WIDE set "VICTORY_WAVE_WIDE=last"
|
|
if not defined VICTORY_LOG set "VICTORY_LOG=warn"
|
|
|
|
rem Every session logs to logs\session-<date>-<time>.log (UTC) beside this
|
|
rem launcher (victory.exe keeps the newest 20), so a run can be looked at after
|
|
rem the window is closed. Set VICTORY_LOG_FILE or VICTORY_LOG_DIR to log elsewhere.
|
|
if not defined VICTORY_LOG_FILE if not defined VICTORY_LOG_DIR set "VICTORY_LOG_DIR=%~dp0logs"
|
|
"%runner%" run "%VICTORY_GAME_DIR%\game_scarlett_master.exe" --console series-s --execute
|
|
exit /b %errorlevel%
|