Repository navigation
Fix WGC full-frame capture on dynamic target size changes - #4
Merged
BANSAFAn merged 3 commits intoNov 1, 2026
Merged
Conversation
Co-authored-by: BANSAFAn <86590991+BANSAFAn@users.noreply.github.com>
Co-authored-by: BANSAFAn <86590991+BANSAFAn@users.noreply.github.com>
Closed
Contributor
|
@copilot We need to improve optimization, enhance the screen viewing interface, and fix the bug where, when selecting a screen or game, it didn't record the entire screen but only the part the user selected—and make sure it works properly. |
BANSAFAn
marked this pull request as ready for review
November 1, 2026 09:39
Copilot
AI
changed the title
[WIP] Improve screen optimization and fix screen recording issue
Fix WGC full-frame capture on dynamic target size changes
Nov 1, 2026
Contributor
Author
Implemented in commit Updates include:
Security checks were rerun (secret scan + CodeQL) with no issues. |
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Window/monitor/game-target recording could intermittently capture only a partial region after target size changes, and preview dimensions could drift from actual frame size. This updates the WGC resize path so capture surfaces and UI sizing stay consistent with live content dimensions.
Capture pipeline: handle WGC size changes correctly
wgc_capture_acquire_frame(wgc_bridge.c), detectContentSizechanges and callFramePool::Recreate(...)with the new size.WGC backend texture lifecycle: keep destination texture in sync
WgcCapture.acquireFrame(wgc_capture.zig), recreatedest_texturewhen reported frame dimensions differ from the current texture.Backend dimension propagation
CaptureBackend.acquireFrame(capture_backend.zig), update backendwidth/heightfrom each emitted frame to keep downstream consumers aligned with actual source dimensions.Preview interface correctness
ui_controller.zig, updateui_state.preview_width/preview_heightfrom each preview frame, not only on backend init, so aspect/size metadata tracks runtime changes.