Repository navigation
fix(cs2): 0.4.3 bug fixes, ReShade add-on repair, and CS2 1.42.0.1 signatures - #216
Conversation
…gnatures Maintenance release 0.4.3 on release/0.4 (bug fixes only, no 1.0 features): - Backports #198 (DeathMsg signatures for CS2 1.42) and #192 (SkyOrient entity class check). - Incorporates #213 (scenesystem.dll shadow signatures for CS2 1.42.0.1, credit @SpasaevDonut). - Backports #215: stuck demo-bar scrub drag recovery, shader derivation/hook std::bad_alloc guards, worker concurrency cap and commit-headroom backoff, mvm_debug gate on the 512 MiB shader dump cache, DXBC length bounds checks, clean worker shutdown, IDXGISwapChain::Release hook, and ReShade add-on launch repair (refreshing bundled ReShade d3d11.dll, clearing stray ReShade dxgi.dll, keeping .\ in [ADDON] AddonPath, and un-disabling mvm_reshade_state.addon64). - Bumps launcher version to 0.4.3 and adds the 0.4.3 section to CHANGELOG.md (What's New). Refs #214
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cde9ac2fa0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| WindowResize_Shutdown(); // destroys the resize readout window before the DLL goes away | ||
| SceneKeys_Flush(); | ||
| Environment::FlushCommittedEdits(); | ||
| Environment::ShutdownNativeMaterialDerivation(); |
There was a problem hiding this comment.
Invoke the filmmaker shutdown from the CS2 quit hook
The hooked new_CCS2_Client_Shutdown path in main.cpp never calls Filmmaker::Shutdown(), and there are no other callers in the repository. That leaves this new queue-stop step unreachable on normal CS2 quit, so derivation jobs can still run while Source2 tears down. Call the filmmaker shutdown from the hooked path.
Useful? React with 👍 / 👎.
| queue.stopping=true; | ||
| queue.jobs.clear(); | ||
| queue.wake.notify_all(); | ||
| queue.idle.wait_for(lock,std::chrono::milliseconds(1500),[&]{return queue.activeWorkers==0;}); |
There was a problem hiding this comment.
Wait for derivation workers to exit before teardown
If shutdown is called while a worker is deriving a shader, this wait returns after 1.5 seconds even if activeWorkers is still nonzero; its result is ignored, and the workers are detached. The caller can therefore proceed to unload the DLL while a worker is still executing DLL code. Keep worker handles and join them, or otherwise wait for the threads themselves to exit before returning.
Useful? React with 👍 / 👎.
| static std::mutex lock;std::lock_guard<std::mutex> guard(lock); | ||
| // Development aid: keep the bytecode of every clustered-light program only when mvm_debug is active | ||
| // so normal user sessions never pin up to 512 MiB of raw DXBC in process memory. | ||
| if(info.lightSlot&&MvmDebugLog_Active()){ |
There was a problem hiding this comment.
Preserve the documented dumpprograms workflow
For the documented mirv_relight dumpprograms workflow, if users load a map without starting mvm_debug first, this condition records no native pixel shaders. DumpNativePrograms then cannot supply the material programs needed by ValidateNativeVariants; the separately stored cluster-compute shaders do not cover them. Preserve this workflow with an independent capture option, or update the procedure to require enabling debug logging before loading the map.
Useful? React with 👍 / 👎.
| Log("auto-release stuck drag at %.3f (sawDown=%d upFrames=%d)", g_target, g_dragSawMouseDown ? 1 : 0, g_dragMouseUpFrames); | ||
| g_released = true; | ||
| g_reaims = 0; | ||
| if (TimelinePlayhead_Scrubbing()) TimelinePlayhead_EndScrub(); |
There was a problem hiding this comment.
Release CameraPath's scrub state on auto-release
If the Camera Timeline slider misses SliderReleased, this auto-release ends the shared playhead scrub but leaves CameraPath scrubbing: camtl scrubpreview called m_play.BeginScrub() and cleared m_scrubReleasePending, and CameraPath::RunFrame() continues ticking that pose without a release pending. The camera therefore remains pinned to the preview instead of handing control back after the world scrub releases; also end the CameraPath scrub on this auto-release path.
Useful? React with 👍 / 👎.
Summary
Maintenance release 0.4.3 on
elease/0.4\ (bug fixes only — no 1.0 features from \main):