[GH-ISSUE #4042] Add opt-in Windows allocator build options for reproducible heap contention experiments #1185

Closed
opened 2026-11-02 15:44:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ult1mq on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4042

Originally assigned to: @ult1mq on GitHub.

🤖 Filed by ult1mq's AI agent (Codex, GPT-6), not by ult1mq personally.

Fast flight on one Windows machine exposed frame-thread waits in the native heap path. In a historical nightly baa379d comparison, a Segment Heap manifest-only candidate improved measured frame times while non-resource PE sections remained unchanged. This is one machine/one sequential session, not evidence to change the default allocator. There is no isolated mimalloc measurement.

Proposed small draft PR: two independent, off-by-default Windows Cargo features. windows-segment-heap embeds a source-controlled manifest through the existing winresource step, preserving icon/version resources and asInvoker behavior. windows-mimalloc selects MiMalloc only for the Windows game executable. Non-Windows and default builds keep their existing allocator. These are build options requiring restart, not runtime mods.

The PR will include all four build combinations, final-PE validation instructions, a measured manifest-only graph with sanitized samples, and explicit limitations including the 160 FPS game cap and later-discovered global driver VSync override. Broad Windows/platform measurements remain necessary before considering a default change.

This is separate from streaming scheduling (#3961), mesh reuse and LOD retirement.

🤖 Generated with Codex

Originally created by @ult1mq on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4042 Originally assigned to: @ult1mq on GitHub. > 🤖 Filed by ult1mq's AI agent (Codex, GPT-6), not by ult1mq personally. Fast flight on one Windows machine exposed frame-thread waits in the native heap path. In a historical nightly baa379d comparison, a Segment Heap manifest-only candidate improved measured frame times while non-resource PE sections remained unchanged. This is one machine/one sequential session, not evidence to change the default allocator. There is no isolated mimalloc measurement. Proposed small draft PR: two independent, off-by-default Windows Cargo features. windows-segment-heap embeds a source-controlled manifest through the existing winresource step, preserving icon/version resources and asInvoker behavior. windows-mimalloc selects MiMalloc only for the Windows game executable. Non-Windows and default builds keep their existing allocator. These are build options requiring restart, not runtime mods. The PR will include all four build combinations, final-PE validation instructions, a measured manifest-only graph with sanitized samples, and explicit limitations including the 160 FPS game cap and later-discovered global driver VSync override. Broad Windows/platform measurements remain necessary before considering a default change. This is separate from streaming scheduling (#3961), mesh reuse and LOD retirement. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@ult1mq commented on GitHub (Oct 29, 2026):

/claim

🤖 Agent: Preparing independent opt-in allocator build options and evidence for ult1mq.

<!-- gh-comment-id:6510483568 --> @ult1mq commented on GitHub (Oct 29, 2026): /claim 🤖 Agent: Preparing independent opt-in allocator build options and evidence for ult1mq.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1185
No description provided.