Repository navigation
OptiLord v0.4.0 — CPU Contention & Frame Pacing
Pre-releaseOptiLord v0.4.0 — CPU Contention & Frame Pacing
OptiLord is an independently versioned community performance fork (v0.1.0 → v0.2.0 → v0.3.0 → v0.4.0) maintained by TechnoidVR for Call of Duty: Modern Warfare 2 Campaign Remastered VR, built on Overlord VR Beta 8.
Huge thanks to Aeka0, original creator of Overlord VR, for the foundational VR mod.
SteamVR compatibility note: To keep existing SteamVR profiles, manifests, and bindings working seamlessly, the executable remains named
overlord.exe(application_key: "overlord",overlord.vrmanifest).
What's New in v0.4.0
Guided directly by real vr_debugWaitTiming telemetry captures (mapname="arcadia", Meta Quest 3 via VirtualDesktopXR, Ryzen 7 5700X, Radeon RX 9070), this release eliminates critical CPU mutex contention and thread-scheduling stalls on the VR render/present pipeline while keeping everything from v0.3.0 (vr_renderScale, FidelityFX CAS, OpenXR Hidden Area Mesh), v0.2.0 (dense-scene CPU hot-path fixes), and v0.1.0 (streaming anti-stutter & Phases 1–4):
1. Lock-Free Runtime State & Capture Polling
src/client/component/vr/runtime_backend.cpp,openxr_runtime.cpp,openvr_runtime.cpp:- Added lock-free
desired_enabled_atomic_andapplied_enabled_atomic_mirrors (synchronized across every state transition andpublish_status_locked()) sorequested_enabled()andapplied_enabled()execute via purestd::memory_order_acquireatomic loads with zero mutex locks. - Removed redundant
runtime_backendfacade/dispatchmutex_locks onrequested_enabled(),applied_enabled(), andpoll_capture()(preservingchoice_.validguards). - Impact: Eliminates the measured
1.0–4.5 ms(up to87.5 msmax) CPU stalls where H2's Frontend/Renderer thread (r_end_frame_stub) previously blocked behindxrWaitFrameholdingmutex_on the Present thread.
- Added lock-free
2. Critical VR Thread Priority Pinning
src/client/component/vr/vr_component.cpp:- Added
boost_critical_vr_thread_priority(), settingTHREAD_PRIORITY_ABOVE_NORMALonce per critical thread insideon_present_pre(...)(DXGI Present / D3D11 Backend / OpenXR thread) andon_renderer_frame(...)(H2 Frontend / Scene thread). - Reduces Windows scheduler preemption and cross-core jitter under heavy multi-core load.
- Added
3. Zero-Observer D3D11 Resource-Ops Fast-Path
src/client/component/vr/engine_stereo_resource_ops.cpp:- Added
record_call_if_no_observers()across all 8 intercepted D3D11 resource stubs (CopySubresourceRegion,CopyResource,UpdateSubresource,CopyStructureCount,ClearUnorderedAccessViewUint,ClearUnorderedAccessViewFloat,GenerateMips,ResolveSubresource). - Skips
_ReturnAddress()lookups, 80-byteeventstruct construction, andpublish()overhead across 500,000+ D3D11 copy/update calls whenactive_observer_mask == 0while keeping exact counters and observer semantics intact.
- Added
Quick Install Guide (5 Steps)
- Ensure you have a complete, legal installation of Call of Duty: Modern Warfare 2 Campaign Remastered (exit the game and close MSI Afterburner / RivaTuner).
- Download
OptiLord-v0.4.0.7zbelow. - Extract all files directly into your MW2CR root directory (beside
MW2CR.exe), overwriting existing mod files (overlord.exe,openxr_loader.dll,overlord.vrmanifest,h2-mod/,steamvr/,vr_input/). - Power on your VR headset and wake both controllers (OpenXR is recommended; OpenVR backup is available in VR Settings).
- Launch
overlord.exe, disable risky settings (Shader Preloading, SSAA, shadow caches), keep debug probes off for normal play (VR Settings > Debug), and click Singleplayer.
Recommended Performance Settings (Wolverines! / Exodus)
Open VR Settings → Basics → Performance in the OptiLord Launcher:
- Render scale (
vr_renderScale):100%(or80%–90%if GPU-bound) - FidelityFX CAS sharpening (
vr_sharpening):35%–50% - Hidden area mesh (
vr_hiddenAreaMesh): Enabled (default)
Archive Checksum (OptiLord-v0.4.0.7z)
- Size:
45,212,978bytes (125 files) - SHA-256:
DA0166E0948A890CDDFF63FDF7FAB938810E09091EEC87531AFF728AFDF3CD54