Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Recreate the WGC session and pool together during static resize recovery

Veyra Goal Agent1f283dc9ccbd
diff --git a/src/source/ScreenCaptureSource.cpp b/src/source/ScreenCaptureSource.cpp
index d6381849..f5052072 100644
--- a/src/source/ScreenCaptureSource.cpp
+++ b/src/source/ScreenCaptureSource.cpp
@@ -189,7 +189,9 @@ struct ScreenCaptureSource::Impl {
// obtain a real new-size frame. Never repaint the target or fabricate
// pixels/timestamps; moving sources keep their existing session.
resizeNeedsFrame=false;
- session.Close();session=pool.CreateCaptureSession(item);
+ session.Close();pool.Close();
+ pool=Direct3D11CaptureFramePool::CreateFreeThreaded(wrapped,DirectXPixelFormat(format),2,poolSize);
+ session=pool.CreateCaptureSession(item);
session.IsCursorCaptureEnabled(options.cursor);
if(borderDisabled)session.IsBorderRequired(false);
session.StartCapture();wasWaiting=true;