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++
#pragma once
#include <algorithm>
#include <cmath>
#include <cstdint>
namespace veyra::ui {
// A single reversible animation, never a queue of layout operations.
struct WorkspaceTransition {
float value=0,from=0,to=0;uint64_t started=0;bool running=false;
static constexpr uint64_t duration=240;
float sample(uint64_t now){if(!running)return value;float t=std::clamp(float(now-started)/duration,0.f,1.f);float eased=t*t*(3-2*t);value=from+(to-from)*eased;if(t>=1){value=to;running=false;}return value;}
void start(bool professional,uint64_t now){sample(now);from=value;to=professional?1.f:0.f;started=now;running=from!=to;}
void finish(){value=to;running=false;}
int mix(int a,int b)const{return int(std::lround(a+(b-a)*value));}
};
}