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++
2.2 KB
Raw Blame
import QtQuick
Item {
    id: test
    property string media: ""
    property string mode: "capability"
    property bool available: veyra.effectCapabilities.vfg.available
    property int phase: 0
    property int ticks: 0
    property double started: 0
    function require(ok,why) {
        if(ok)return
        console.error("PLAYBACK_CAPABILITY_FAIL",why)
        timer.stop();Qt.quit();throw new Error(why)
    }
    Timer {
        id: timer;interval:200;running:true;repeat:true
        onTriggered: {
            ++test.ticks;test.require(test.ticks<150,"30-second deadline")
            if(test.phase===0){
                veyra.nrEnabled=false;veyra.srEnabled=false;veyra.fgEnabled=false
                test.require(test.available,"VFG must initially be present on the test GPU")
                console.log("PLAYBACK_CAPABILITY_READY");test.started=Date.now();test.phase=1;return
            }
            if(test.phase===1){
                if(Date.now()-test.started<400)return
                veyra.lowLatency=!veyra.lowLatency
                console.log("PLAYBACK_CAPABILITY_ACTION_READ",veyra.effectCapabilities.vfg.available,test.available)
                test.require(!veyra.effectCapabilities.vfg.available,"missing component not found by action validation")
                test.started=Date.now();test.phase=2;return
            }
            if(test.phase===2){
                if(test.available){test.require(Date.now()-test.started<6000,"QML binding stayed enabled after missing component");return}
                const choice=veyra.fgBackendChoices.filter(c=>c.id==="vfg")[0]
                test.require(choice.disabled,"missing VFG menu not gray")
                console.log("PLAYBACK_CAPABILITY_MISSING_PASS");test.started=Date.now();test.phase=3;return
            }
            if(test.phase===3){
                if(!test.available){test.require(Date.now()-test.started<6000,"QML binding never saw restored component");return}
                const choice=veyra.fgBackendChoices.filter(c=>c.id==="vfg")[0]
                test.require(!choice.disabled,"restored VFG menu stays gray")
                console.log("PLAYBACK_CAPABILITY_PASS");Qt.quit()
            }
        }
    }
}