Repository navigation
fix: Halo 3 and ODST split screen - bodies stay drawn when they pile up - #39
Merged
megabitt01 merged 2 commits intoOct 29, 2026
Merged
Conversation
Halo 3 and ODST give every skinned object drawn in a frame its bone matrices from one 0x29000-byte per-frame pool, the same allocator as Reach's (megabitt01#35) in a smaller pool. With four views and a pile of bodies it runs dry and the later views draw characters and first-person weapons black, over-bright or not at all. Move it to a 4 MB buffer: point its users' leas at the buffer and raise the allocator's limit. Handles are the plain byte offset (28-bit mask), so nothing else changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kirklandsig
added a commit
to kirklandsig/AlphaRing
that referenced
this pull request
Oct 28, 2026
…pile up Halo 3 and ODST share one 0x29000-byte per-frame skinning pool across all views, the same bug as Reach's. Once it fills, the later views draw characters and first-person weapons black, over-bright or not at all. The pool is moved to a 4 MB buffer near the module: its leas are redirected and the allocator's limit raised, then put back at unload. Same fix as upstream megabitt01#39. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 tasks
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.
Halo 3 and ODST had the same "too many bodies" bug as Reach (#35): with lots of characters in one place in 4-player split screen, the later views draw characters and first-person weapons black, over-bright or not at all. It's the same per-frame skinning pool, only smaller, and this moves it to a bigger buffer the same way.
Cause
0x29000bytes (168 KB, smaller than Reach's0x35C00):halo3+0x4680DC4, allocator at0x2A84F8.halo3odst+0x46AC274, allocator at0x2CCFBC.nodes x 0x30 + 0x44bytes. When the pool is full the allocator returns -1, and that object is drawn without its bones. The views are drawn in order, so the last ones lose first.& 0xFFFFFFFwherever it's read). Reach puts frame bits in its handle; Halo 3 doesn't.Fix (
src/mcc/module/entry/halo3/skinning.cpp, one file for both games since they share the engine)lea reg, [rip + pool]is pointed at the buffer: 7 in Halo 3, 6 in ODST. Each is a user followed by its handle'sand, plus one startupmemset. Then the allocator'scmp edx, 0x29000is raised to0x400000.leas first, limit last) and are put back last-first inunload_module, while the DLL is still mapped. Each game keeps its own writes, because MCC has both DLLs loaded at the main menu.leas are all checked.Testing (MCC 1.3528, Steam under Proton, Sierra 117 / Prepare to Drop at 4 players). The probe read the pool's used count and high-water mark from game memory.
0x29000, the limit.0x392E4bytes, more than the stock pool holds.master-chief(2c66a60).VirtualProtectfailures on the module's own code in a row, and the result is wrongly skinned models for that session, not a crash (both buffers are at least the stock size). Reach's pool fix in fix: Reach split screen - bodies stay drawn, side-by-side HUD centred; patches saved off stay off #35 handles it the same way.Doesn't depend on any open PR. #38 changes
CModule.cppand the offset headers too, so whichever goes in second needs a small rebase, and I'll do it.🤖 Generated with Claude Code