From 10908668888c1d93ee376c12d7093ec54d9e880a Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Sat, 21 Nov 2026 20:30:14 -0700 Subject: [PATCH] Dark Forces: only the textures a level uses are loaded; the level is freed before the next cutscene TheForceEngine perf/df-level-memory 5f5b0da (TFE_ESPBOX, shared with the box): only the textures the sectors and walls use are loaded (JABSHIP: 51 of 359, -1.1 MB), the level is freed before the next mission's cutscene starts (finishing NARSHADA ran out of memory in jabba1 on the box), the renderer's adjoin edge list (-253 KB) and the task stacks (-96 KB per 16 tasks) are their real size, and a save load frees the loaders' read buffers. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY --- components/darkforces/TheForceEngine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/darkforces/TheForceEngine b/components/darkforces/TheForceEngine index 8e777a8..5f5b0da 160000 --- a/components/darkforces/TheForceEngine +++ b/components/darkforces/TheForceEngine @@ -1 +1 @@ -Subproject commit 8e777a8c9c4f4fcf8c37f5b4c22765014e061e08 +Subproject commit 5f5b0da3231732f5985ebfa226609ea0049d7aa1