Repository navigation
Jedi Knight: the whole campaign runs in one session; no PSRAM lost after quitting at a tally or cutscene - #38
Merged
Conversation
…o file esp-cpp/OpenJKDF2 esp32/cutscene-check-leak (58a8df48). Before each cutscene the engine checked the video file through a path that read the whole file into memory and never freed it: 7.1 MB for 23A.SMK after level 8, 3.3 MB for 25A after level 9. The rest of the boot lost it too, since the copy was plain malloc. That is why 09FuelStation failed to load in a continuous run (largest block 2 MB) and why quitting JK at a tally, a cutscene or a level load lost 7-10 MB of PSRAM until reboot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine side: esp-cpp/OpenJKDF2#3. This PR bumps
components/jk/OpenJKDF2to that branch (58a8df48).Summary
resource/video/X.smkinto a plainmalloc.Testing (Tab5)
Both runs: one engine session from a fresh boot. The test harness ends each level for real (
thereisnotry: tally, Force screen, cutscene, next level). God mode on, audio muted.Cutscenes still play. The fix was reviewed adversarially before testing, and no defects were found.
Found while testing, not caused by this PR: in a second JK session within one boot (any quit and relaunch), the first tally screen ignores Enter, while touch still works. The same happens without this PR. This is probably the "tally unresponsive" seen earlier. Not fixed here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY