FSR 1 & FrameFlow Same-Device Zero-Copy Pipeline
PVSSPW integrates two WebGPU post-processing systems over the native emulator texture without CPU readback:
Native Two-Pass FSR 1 (vitaslop-fsr1.patch)
Executed at the tail of vitaslop-web display rendering when upscaling to display resolution (outputResolution = display, fsr1 = on):
fsr1-easusamples the native stage texture into a dynamically resizedRgba8Unormfsr1-scratchimage.fsr1-rcassharpens into the swapchain surface target without altering internal guest render target resolution.
Shared-GPUDevice Zero-Copy Ring (web/frameflow-worker.js)
Loaded as the outermost module before worker-probe.js and worker.js:
- Opt-in
shader-f16: WrapsGPUAdapter.prototype.requestDeviceon hardware GPUs to append'shader-f16'when exposed, cleanly falling back if the driver declines. - 3-Slot Ring Interception (
ensureRingAndSession): Redirects swapchain acquisitions intoframeflow-ring-0..2(tex.destroy = () => {}) on the sharedGPUDevicesoGameFI(lite-2x,std-2x,lite-3x,std-3x) andGameSR(sr-lite,sr-std) execute directly on GPU textures. - Mutual Exclusion & Software Guard:
web/engine.jsdisables nativefsr1wheneversrActive(GameSR) is enabled, anduiPresent=softwaredisablesuiFrameflowanduiSrcompletely.