Repository navigation
Releases
OptiLord v0.7.0 — Generalized Sun Shadow Reuse, CommandList Caching & PIP Scope Optimization
OptiLord v0.7.0 — Generalized Sun Shadow Reuse, CommandList Caching, Triple-Buffered Ring & PIP Scope Optimization
OptiLord is an independently versioned community performance fork (v0.1.0 → v0.7.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 game executable remains named
overlord.exe(application_key: "overlord",overlord.vrmanifest). Includes everything fromv0.6.0(dual shoulder holsters, trigger-zone fixes & multi-zone hover haptics),v0.5.0(clean 1-click installer & uninstaller),v0.4.0(lock-free CPU frame pacing),v0.3.0(GPU Render Scale, FidelityFX CAS, OpenXR Hidden Area Mesh),v0.2.0(dense-scene CPU hot-path fixes), andv0.1.0(streaming anti-stutter & Phases 1–4).
What's New in v0.7.0
Generalized Sun Shadow Reuse & Diagnostics
- Unblocked Multi-Resolution, Cascade, Transparent & Auxiliary Sun Shadow Reuse (
engine_stereo_sun_shadow.{hpp,cpp},engine_stereo_owner_pass.{hpp,cpp}): Removed hardcoded2048px/3 configured/2 active/transparent_enabled == 0/main_target == 26/auxiliaryexclusions that preventedsun_shadow_reusefrom firing when shadow settings or scenes differed. Now supports{512, 1024, 2048, 4096}tiles,{2, 3, 4}configured cascades (1..configuredactive), main targets{26, 27}, optional transparent sun-shadow targets{28, 29}under dual watched-resource tracking, static-onlyend >= beginpasses, and auxiliary scope views. - Granular Telemetry Counters (
diagnostics/owner_status.cpp): Extendedsun_shadow_reuse:diagnostics withskipped_aux,reject(contract/cache/delegated/tex/post_left/mismatch), andlast(tile/cfg/act/main/trans/tr_en/cache)fields so diagnostics show live hit rate and exact rejection reasons immediately.
DX11 CommandList Caching & CPU Hot-Path Relief
- Cached
ID3D11CommandListPlayback (hidden_area_mask.hpp,texture_blit.{hpp,cpp}): Cached recorded deferred command lists per eye(context, dsv, width, height, revision)inhidden_area_maskand per(source, destination, width, height, format)intexture_blit(updating the 32-byte shader constant buffer only when parameters change), removing per-frame COM descriptor queries and driver command-list compilations. - Scoped Dynamic-Arena Validation (
engine_stereo_dynamic_arena.{hpp,cpp},engine_stereo_owner_pass.{hpp,cpp}): Addedvalidation_scopereused within synchronous owner views to avoid redundantK32QueryWorkingSetExkernel syscalls across dynamic-index geometry boundaries while retaining per-call SEH bounds protection and strict read/write promotion guards. - Idle
draw_stubBypass & Cached Source Device Check (engine_stereo_execution.{hpp,cpp},engine_stereo_draw_indexed.cpp,native_render_session.cpp): Bypassed_ReturnAddress()and observer bookkeeping indraw_stub()when no draw observer or transaction is active (needs_draw_indexed_observation()), and skipped redundanttexture_uses_device()COM queries incopy_eye()for already-cached sources.
Triple-Buffered Stereo Ring & PIP Scope Cost Reduction
- Triple-Buffered Copy Ring & Stale-Family Fix (
native_render_session.hpp,engine_stereo_bridge.cpp): Increasednative_render_session::pair_countfrom2to3to preventadmit_pairslot starvation during pipelined OpenXR capture, and updatedtake_view_family_for_frontend()so already-completed (0x3u) families are never re-issued when no successor is queued (reducing wastedfrontend_pair_unavailablemono frames). vr_scopeRenderMode(on/thermal_only/off) & Effect Stripping (settings.hpp,gameplay/optic_runtime.cpp,native_post_aa.cpp,engine_stereo_owner_pass.cpp): Exposed Scope PIP rendering in VR Settings → Basics → Performance across all 9 launcher languages (93settings total). SettingThermal onlyuses lightweight same-eye magnified lens zoom for standard optical scopes while keeping full independent PIP rendering for thermal scopes — recommended on CPU-limited systems. Even inFull PIPmode, glass auxiliary scope views now skip redundant Post-AA (native_post_aa.cpp) and SSR (thermal_scene::ssr_offset = 0).
Option 1 (Recommended): 1-Click Installer (OptiLord-v0.7.0-Setup.exe)
- Exit the game and close MSI Afterburner / RivaTuner.
- Download and run
OptiLord-v0.7.0-Setup.exebelow. - Auto-Detection & Clean Upgrade: Automatically locates MW2CR, removes stale/obsolete Overlord & OptiLord binaries (
overlord.exe,overlord.pdb,release-info.json,h2-mod/,steamvr/,vr_input/, etc.) before extracting freshv0.7.0files, while never touching game files (MW2CR.exe,Data/,main/) or campaign saves (players2/). IncludesOptiLord-Uninstall.exeregistered under Windows Apps (HKCU).
Option 2: Manual Archive (OptiLord-v0.7.0.7z)
- Close MW2CR and MSI Afterburner / RivaTuner.
- Download
OptiLord-v0.7.0.7zbelow and extract all contents directly into your MW2CR root folder (besideMW2CR.exe), overwriting existing mod files. - Power on your VR headset and controllers (OpenXR recommended), launch
overlord.exe, open VR Settings → Basics → Performance (for heavy outdoor levels / CPU-limited rigs, considervr_renderScale80%–90% +vr_scopeRenderMode=Thermal only), keep debug probes off for normal play, and click Singleplayer.
Checksums
| Asset | Size | SHA-256 |
|---|---|---|
OptiLord-v0.7.0-Setup.exe |
64,764,819 bytes (125 payload files) |
907610D05209959D27EC74A9E8291CBDF0366822DF29BE726D7B0F75D72C173A |
OptiLord-v0.7.0.7z |
45,228,064 bytes (125 files) |
E6B115E5B0330898149E3502E0C267991B6E9DAE7AE918CEBAC76BD15A6869BB |
OptiLord v0.6.0 — Dual Shoulder Holsters, Trigger Zone Fixes & Multi-Zone Hover Haptics
OptiLord v0.6.0 — Dual Shoulder Holsters, Trigger Zone Fixes & Multi-Zone Hover Haptics
OptiLord is an independently versioned community performance fork (v0.1.0 → v0.6.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 game executable remains named
overlord.exe(application_key: "overlord",overlord.vrmanifest). Includes everything fromv0.5.0(clean 1-click installer & uninstaller),v0.4.0(lock-free CPU frame pacing),v0.3.0(GPU Render Scale, FidelityFX CAS, OpenXR Hidden Area Mesh),v0.2.0(dense-scene CPU hot-path fixes), andv0.1.0(streaming anti-stutter & Phases 1–4).
What's New in v0.6.0
Dual Shoulder Holsters (Two Two-Handed / Heavy Weapons)
- Independent Left & Right Shoulder Slots (
left_back+right_back): Replaced the single shared shoulder slot with independent symmetric left (Y = +back_width) and right (Y = -back_width) shoulder volumes meeting cleanly atY = 0(weapon_carry.hpp,weapon_holsters.hpp,weapon_carry_grip.hpp,weapon_carry_runtime.cpp,weapon_inventory_snapshot.hppschema = 2), letting players carry two two-handed / heavy weapons simultaneously (right_waist -> left_waist -> right_back -> left_back -> overflow). - Launcher Spacing Setting (
vr_holsterBackWidth): Adjustable shoulder holster width (0.10–0.40 m, default0.20 m, step0.01 m) in VR Settings → Gameplay → Weapon interaction, localized across all 9 launcher languages.
VR Trigger Zone Fixes, Arbitration & Hysteresis
- 180° Room-Scale & Downward-Pitch Body Tracking (
body_pose.hpp): Replaced frozeneye_reference_with torso-yaw-rotatedtorso_eyeand downward-pitch clamping (std::max(eye[2], 0.f)) so waist, shoulder, chest, and abdomen holsters remain aligned during physical 180° turns and downward head tilts. - Unblocked Body Holstering Near Walls (
weapon_carry.hpp,weapon_carry_runtime.cpp): Wall clearance checks no longer block releasing weapons into body holsters when standing close to cover or walls. - Waist Distance Sync &
vr_supportGripLockAuto-Unlock (hand_interaction/frame.hpp,underbarrel_runtime.cpp,weapon_carry_runtime.cpp): Applied the+0.04 mfront-belly/torso bonus uniformly across waist and underbarrel interactions, added automatic waist-entry unlock whenvr_supportGripLockis enabled, and unifiedresolve_holster_draw()/resolve_holster_hit(). - Tighter Trigger Zones & Priority Arbitration (
weapon_carry_runtime.cpp,nightvision.hpp,nightvision_runtime.cpp,body_equipment.hpp,special_equipment_policy.hpp): Assigned Priority16to foregrip/control interactions, raised NVG Grip from Priority11to18(above chest/abdomen Priority20) with a tighteracquisition()box, reduced chestzhalf-extents (knife .17f,grenade .14f), and added an interior distance gradient toabdominal_grab_distance_at(). - Exit Hysteresis (
quick_reload_runtime.cpp,world_interaction.cpp): Added+4 cmactive dwell exit hysteresis and begin/complete haptic cues to Quick Reload, plus+0.35 m/+8°retention hysteresis on active worlduse_leaseinteractions. - Multi-Zone Hover Readiness Haptics (
holster_feedback.hpp,weapon_feedback.{hpp,cpp},equipment_runtime.{hpp,cpp},grenade_runtime.{hpp,cpp},special_equipment_runtime.{hpp,cpp}): Per-zonezone_hover_feedbacklatching with+4 cmexit margins and distincthover_zonereadiness pulses acrossleft_waist,right_waist,left_back,right_back,chest_knife,chest_tactical,chest_lethal,abdomen, andammo_pouch.
Option 1 (Recommended): 1-Click Installer (OptiLord-v0.6.0-Setup.exe)
- Exit the game and close MSI Afterburner / RivaTuner.
- Download and run
OptiLord-v0.6.0-Setup.exebelow. - Auto-Detection & Clean Upgrade: Automatically locates MW2CR, removes stale/obsolete Overlord & OptiLord binaries (
overlord.exe,overlord.pdb,release-info.json,h2-mod/,steamvr/,vr_input/, etc.) before extracting freshv0.6.0files, while never touching game files (MW2CR.exe,Data/,main/) or campaign saves (players2/). IncludesOptiLord-Uninstall.exeregistered under Windows Apps (HKCU).
Option 2: Manual Archive (OptiLord-v0.6.0.7z)
- Close MW2CR and MSI Afterburner / RivaTuner.
- Download
OptiLord-v0.6.0.7zbelow and extract all contents directly into your MW2CR root folder (besideMW2CR.exe), overwriting existing mod files. - Power on your VR headset and controllers (OpenXR recommended), launch
overlord.exe, keep debug probes off for normal gameplay, and click Singleplayer.
Checksums
| Asset | Size | SHA-256 |
|---|---|---|
OptiLord-v0.6.0-Setup.exe |
64,752,071 bytes (125 payload files) |
B4C7768F3463C8C2172907BED9B15628396D14F656539A3AE84152BC826ABF53 |
OptiLord-v0.6.0.7z |
45,223,870 bytes (125 files) |
E5C81F5A1482B925F17DC6713C97532C83FAFE2CECC7A93EECEF8619A985BA46 |
OptiLord v0.5.0 — Clean 1-Click Installer & Uninstaller
OptiLord v0.5.0 — Clean 1-Click Installer & Uninstaller
OptiLord is an independently versioned community performance fork (v0.1.0 → v0.5.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 game executable remains named
overlord.exe(application_key: "overlord",overlord.vrmanifest). Includes everything fromv0.4.0(lock-free CPU frame pacing),v0.3.0(GPU Render Scale, FidelityFX CAS, OpenXR Hidden Area Mesh),v0.2.0(dense-scene CPU hot-path fixes), andv0.1.0(streaming anti-stutter & Phases 1–4).
Option 1 (Recommended): 1-Click Installer (OptiLord-v0.5.0-Setup.exe)
- Exit the game and close MSI Afterburner / RivaTuner.
- Download and run
OptiLord-v0.5.0-Setup.exebelow. - Auto-Detection: Automatically searches for your MW2CR folder across Battle.net (
Battle.net.config), Windows Uninstall registry keys, previous OptiLord installs, and standard library folders across all fixed drives (Program Files,Games,Epic,Battle.net,SteamLibrary, etc.), with a custom folder picker (Browse...). - Clean Install & Upgrade: Automatically detects and wipes obsolete/stale Overlord/OptiLord binaries (
overlord.exe,overlord.pdb,release-info.json,h2-mod/,steamvr/,vr_input/, etc.) before extracting fresh files so old binaries can never cause stale bugs or stutters. - Saves Protected & Clean Removal: Original game files (
MW2CR.exe,Data/,main/) and your campaign saves (players2/) are never touched. Installs a lightweightOptiLord-Uninstall.exe(~625 KB) registered under Windows Apps (HKCU).
Option 2: Manual Archive (OptiLord-v0.5.0.7z)
- Close MW2CR and MSI Afterburner / RivaTuner.
- Download
OptiLord-v0.5.0.7zbelow and extract all contents directly into your MW2CR root folder (besideMW2CR.exe), overwriting existing mod files. - Power on your VR headset and controllers (OpenXR recommended), launch
overlord.exe, disable risky game settings (Shader Preloading, SSAA, shadow caches), keep debug probes off for normal gameplay, and click Singleplayer.
Checksums
| Asset | Size | SHA-256 |
|---|---|---|
OptiLord-v0.5.0-Setup.exe |
64,742,334 bytes (125 payload files) |
842ADC7310EBE2C43EB659AEF38C4822DF288AC70CD773AB0EB3EC7BC2908035 |
OptiLord-v0.5.0.7z |
45,217,230 bytes (125 files) |
617F91559AFD63E7100835D32D89526EB248A1BD13BC200AAA695915C0A02538 |
OptiLord v0.4.0 — CPU Contention & Frame Pacing
OptiLord 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
OptiLord v0.3.0 — GPU Render Scale, FidelityFX CAS Sharpening & OpenXR Hidden Area Mesh
OptiLord v0.3.0 — GPU Render Scale, FidelityFX CAS Sharpening & OpenXR Hidden Area Mesh
OptiLord is an independently versioned community performance fork (v0.1.0 → v0.2.0 → v0.3.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). All documentation and GitHub release notes fromv0.1.0throughv0.3.0are now standardized in English.
What's New in v0.3.0
Built on top of v0.2.0 (CPU dense-scene optimizations) and v0.1.0 (streaming anti-stutter & Phases 1–4 DX11 optimizations), this release directly tackles GPU pixel-shader cost in dense missions such as Wolverines!:
1. Decoupled VR Render Scale (vr_renderScale, 50% – 120%)
- Scales the internal 3D stereo scene resolution (
scene_width_ × scene_height_, 8-pixel aligned viavr::render_tuning::scale_extent) while keeping the OpenXR/OpenVR compositor swapchains and native VR HUD/menus at 100% native headset crispness. - Integrated into
openxr_runtime.cpp,openvr_runtime.cpp,engine_scene_resolution, andvr_component.cpp(default100%, takes effect on restart orvr_reinit).
2. Linear-Space AMD FidelityFX CAS (vr_sharpening, 0% – 100%)
- Implements 5-tap AMD FidelityFX Contrast Adaptive Sharpening directly inside the
texture_blitOpenXR presentation shader (R11G11B10_FLOATlinear space with non-negative output guard). - Preserves the zero-shader hardware
CopyResourcefast-path at100%render scale +0%sharpening +dim == 0. When loweringvr_renderScale(e.g.85%) and settingvr_sharpeningaround35%–50%, fine edges, foliage, and sights stay crisp live with zero restart required.
3. OpenXR Hidden Area Mesh (XR_KHR_visibility_mask / vr_hiddenAreaMesh)
- Queries
xrGetVisibilityMaskKHR(XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR)per eye (and handlesXR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR). - Pre-stamps the invisible lens corners into each eye's reverse-Z depth buffer (
z = 1.0) right after H2's reverse-ZClearDepthStencilViewvia a state-restoring marked deferredID3D11CommandList, allowing Early-Z / Hi-Z to skip fragment shading in peripheral pixels the lenses never show.
4. Launcher UI & 9-Language Localization
- Added VR Settings → Basics → Performance (
vr_renderScale,vr_sharpening,vr_hiddenAreaMesh) with full localized labels and hints across all 9 languages (de,en,es,fr,ja,ko,ru,zh-CN,zh-TW).
Recommended Settings for Heavy Outdoor Missions (Wolverines!)
Open VR Settings → Basics → Performance in the OptiLord Launcher:
- Render scale (
vr_renderScale):80%–90%(requires restart /vr_reinit) - FidelityFX CAS sharpening (
vr_sharpening):35%–50%(applies live) - Hidden area mesh (
vr_hiddenAreaMesh): Enabled (default)
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.3.0.7zbelow. - Extract all files directly into your MW2CR root directory (beside
MW2CR.exe), preserving the folder structure (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), and click Singleplayer.
Archive Checksum (OptiLord-v0.3.0.7z)
- Size:
45,211,222bytes (125 files) - SHA-256:
56F18B7140CCF67254BA62DAB3DD7901EF8BB469CD26B60709C160C5A80BD77D
OptiLord v0.2.0 — Dense-Scene CPU Hot-Path Optimizations (Operation Wolverines)
OptiLord v0.2.0 — Dense-Scene CPU Hot-Path Optimizations (Operation Wolverines)
OptiLord is an independently versioned community performance fork for Call of Duty: Modern Warfare 2 Campaign Remastered VR, built on Overlord VR Beta 8 by Aeka0.
Newer release available: Check the Releases page for
v0.3.0+, which adds GPU Render Scale (vr_renderScale), AMD FidelityFX CAS sharpening (vr_sharpening), and OpenXR Hidden Area Mesh (vr_hiddenAreaMesh).
Key Changes in v0.2.0
Built on top of everything in v0.1.0, this release targets per-draw and per-target CPU overhead in crowded outdoor/urban missions such as Wolverines! and Exodus:
- Lock-Free Target Selection & Post-Bootstrap Probe Bypass (
src/client/component/vr/engine_stereo_renderer.cpp):- Removed
d3d11::get_device_snapshot()(avoidingd3d11::graphics_mutexacquisition and 3× COMAddRef/Releasepairs on everyR_SetRenderTarget) and unusedget_current_binding()frombackend_target_select_probe_stub, passingowner_pass->context.Get()and0directly tonote_target_selection(). - Bypassed
h2_query_publish_probe_stubandrecord_h2_query_resultonceengine_stereo_execution::bootstrap_complete()returnstrue.
- Removed
- Avoided
OMGetRenderTargetson ~95% of Non-Display Targets (src/client/component/vr/engine_stereo_owner_pass.cpp):- Moved
OMGetRenderTargetsinside thetarget_index < native_display_contract::target_countbranch ofnote_target_selection(), sparing ~95% of intermediate non-display target switches per eye.
- Moved
- 8-Entry Lock-Free Negative Ring for Sun-Shadow Views (
src/client/component/vr/engine_stereo_sun_shadow.cpp):- Replaced the single-entry negative cache with an 8-entry lock-free
non_matching_viewsring shared acrossdsv_matches_watched()andwrite_view()(reset cleanly inwatch()/unwatch()), eliminating repeatedGetResource()eviction churn when multiple non-sun targets alternate.
- Replaced the single-entry negative cache with an 8-entry lock-free
- Conditional HUD Capture Arming on
DrawIndexed(src/client/component/vr/native_hud_capture.cpp,src/client/component/vr/engine_stereo_draw_indexed.cpp):- Removed permanent
copy_drawregistration inpost_unpack(); armedcopy_drawexclusively aroundnative_hud_capture::handle()and checkedcopy_observerfirst indraw_stub(), short-circuiting 99.9% of 3D worldDrawIndexedcalls.
- Removed permanent
- Streamlined Per-Eye Resource Isolation (
src/client/component/vr/engine_stereo_eye_resources.cpp):- Streamlined
active_isolated_eye()(singleGetCurrentThreadId()call, thread-local checks before cross-core atomics). - Factored
rewrite_admitted_view_synced()sorewrite_admitted_view_batch()validatessync_foreign_caches_on_owner()andforeign_cache_current()once before iterating slots (while preservingwatched_resourcesfromv0.1.0).
- Streamlined
- Version Bump & Test Alignment:
- Bumped
version.jsonto0.2.0([0, 2, 0, 0]) and alignedtests/ui_script_modules_tests.cppwithOptiLord.
- Bumped
Quick Install (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.2.0.7zbelow. - Extract all files directly into your MW2CR root folder (beside
MW2CR.exe, keepingoverlord.exe,openxr_loader.dll,overlord.vrmanifest,h2-mod/,steamvr/,vr_input/). - Wake your VR headset and both controllers (OpenXR recommended; OpenVR backup available in VR Settings).
- Launch
overlord.exe, disable risky game settings (Shader Preloading, SSAA, shadow caches), and click Singleplayer.
Archive Checksum (OptiLord-v0.2.0.7z)
- Size:
45,321,532bytes (124 files) - SHA-256:
24E5969B5634A14F4BAC0EF5B0229B29401CFD643ACDA4BEAECA67D05981C4D6
OptiLord v0.1.0 — OptiLord Identity, DX11 Pipeline & Streaming Anti-Stutter
OptiLord v0.1.0 — Dedicated Identity, DX11 Pipeline & Streaming Anti-Stutter
OptiLord is an independently versioned optimization and VR reliability edition (v0.1.0 → v0.2.0 → v0.3.0+) 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, without whom this project would not exist.
Newer release available: Check the Releases page for
v0.3.0+, which adds CPU dense-scene optimizations (v0.2.0), decoupled VR render scale, AMD FidelityFX CAS sharpening, and OpenXR Hidden Area Mesh (v0.3.0).
Key Changes in v0.1.0
1. OptiLord Identity & 9-Language Launcher
- Independent versioning starting at
0.1.0(version.json). - Updated
product::name(OptiLord), Windows PE metadata, SteamVR manifest title (OptiLord (Overlord VR)), and launcher strings across all 9 supported languages (en,fr,de,es,ja,ko,ru,zh-CN,zh-TW), explicitly crediting Overlord Beta 8 and Aeka0. - Preserves the
overlord.exeexecutable name (application_key: "overlord",overlord.vrmanifest) for seamless SteamVR profile compatibility.
2. Anti-Stutter Streaming & Loading Fixes
- Lock-free streamer view filtering (
engine_stereo_eye_resources.cpp): Added a seqlock-protectedwatched_resourcestable so background texture streaming (Create*Viewon non-stereo resources) no longer flushescache.foreignor triggers 768-SRV re-scans, while preserving strict ABA detection on tracked stereo targets. - Zero-syscall texture diagnostics (
texture_diagnostics.cpp): Replaced per-textureReadProcessMemory(GetCurrentProcess(), ...)kernel syscalls incopy_pointer()with SEH__try/__exceptstd::memcpy, addedidentity_counthigh-water mark to bound slot scans, and relaxed pre-checks inbegin_active()to eliminate cache-line bouncing. - Cached Bnet file size & I/O synchronization (
database.cpp): Cached filesizeonce on open inbnet_file_handle_t(avoiding repeatedseekg(end)/tellg()calls on every read) and guardedbnet_file_handles/handle_allocatorwithstd::mutex bnet_file_handles_mutex(unlocking before invoking fallback hooks).
3. Included Phase 4 DX11 / OpenXR / HUD Optimizations
- Direct shaderless
CopyResourceOpenXR eye blit whenencoding::linear,dim == 0, and dimensions/formats match (texture_blit.cpp). - Sound
cache.foreignvalidation, dirty-checkedOMSetRenderTargets*/CSSetUnorderedAccessViews/set_shader_resources, andtouched_srv_stages/post_restore_dirtytracking (engine_stereo_eye_resources.cpp). - Merged single-
CommandListexecution and cached COM descriptors inspatial_panel_renderer.cpp, plus cached D3D11 states and relaxed counters innative_hud_capture.cpp.
4. Included Base (Phases 1–3 & VR Gameplay Fixes)
- Memory & PE: Lazy storage (
SizeOfImage282.9 MB → 111.7 MB, raw TLS template −98.2%). - CPU / DX11 / OpenXR: AVX2 build (
/O2 /Ob3 /arch:AVX2),DXGI_FORMAT_R11G11B10_FLOATswapchain preference, single-Flush()stereo submission,XR_EXT_performance_settings, 2D VSync decoupling,1 mstimer resolution,ABOVE_NORMAL_PRIORITY_CLASS. - VR Gameplay Fixes: Room-scale physical doorway collision sync (
roomscale_origin), assault-rifle shoulder/back holster bitmask fix + synchronized haptics + automatic off-hand release, and expanded belt ammo pouch / charging handle grab tolerances.
Archive Checksum (OptiLord-v0.1.0.7z)
- Size:
45,324,891bytes (124 files) - SHA-256:
0AA2549024CB82766877785089B69819417C64802F70E1A79917F2BA7470491D
Legacy Pre-OptiLord Build (Overlord Beta 8 Fork v1 — Superseded)
Superseded legacy build: Please download the latest OptiLord release (
v0.3.0+) from the Releases page instead.
This was the initial pre-OptiLord prototype snapshot prior to independent OptiLord versioning (v0.1.0, v0.2.0, v0.3.0).
Huge thanks to Aeka0, creator of Overlord VR, on whose Beta 8 release this fork is built.