Skip to content

OptiLord v0.2.0 — Dense-Scene CPU Hot-Path Optimizations (Operation Wolverines)

Pre-release
Pre-release

Choose a tag to compare

@Technoidvr Technoidvr released this 25 Nov 08:26
· 6 commits to main since this release

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:

  1. Lock-Free Target Selection & Post-Bootstrap Probe Bypass (src/client/component/vr/engine_stereo_renderer.cpp):
    • Removed d3d11::get_device_snapshot() (avoiding d3d11::graphics_mutex acquisition and 3× COM AddRef/Release pairs on every R_SetRenderTarget) and unused get_current_binding() from backend_target_select_probe_stub, passing owner_pass->context.Get() and 0 directly to note_target_selection().
    • Bypassed h2_query_publish_probe_stub and record_h2_query_result once engine_stereo_execution::bootstrap_complete() returns true.
  2. Avoided OMGetRenderTargets on ~95% of Non-Display Targets (src/client/component/vr/engine_stereo_owner_pass.cpp):
    • Moved OMGetRenderTargets inside the target_index < native_display_contract::target_count branch of note_target_selection(), sparing ~95% of intermediate non-display target switches per eye.
  3. 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_views ring shared across dsv_matches_watched() and write_view() (reset cleanly in watch() / unwatch()), eliminating repeated GetResource() eviction churn when multiple non-sun targets alternate.
  4. 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_draw registration in post_unpack(); armed copy_draw exclusively around native_hud_capture::handle() and checked copy_observer first in draw_stub(), short-circuiting 99.9% of 3D world DrawIndexed calls.
  5. Streamlined Per-Eye Resource Isolation (src/client/component/vr/engine_stereo_eye_resources.cpp):
    • Streamlined active_isolated_eye() (single GetCurrentThreadId() call, thread-local checks before cross-core atomics).
    • Factored rewrite_admitted_view_synced() so rewrite_admitted_view_batch() validates sync_foreign_caches_on_owner() and foreign_cache_current() once before iterating slots (while preserving watched_resources from v0.1.0).
  6. Version Bump & Test Alignment:
    • Bumped version.json to 0.2.0 ([0, 2, 0, 0]) and aligned tests/ui_script_modules_tests.cpp with OptiLord.

Quick Install (5 Steps)

  1. Ensure you have a complete, legal installation of Call of Duty: Modern Warfare 2 Campaign Remastered (exit the game and close MSI Afterburner / RivaTuner).
  2. Download OptiLord-v0.2.0.7z below.
  3. Extract all files directly into your MW2CR root folder (beside MW2CR.exe, keeping overlord.exe, openxr_loader.dll, overlord.vrmanifest, h2-mod/, steamvr/, vr_input/).
  4. Wake your VR headset and both controllers (OpenXR recommended; OpenVR backup available in VR Settings).
  5. 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,532 bytes (124 files)
  • SHA-256: 24E5969B5634A14F4BAC0EF5B0229B29401CFD643ACDA4BEAECA67D05981C4D6