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++
824 B
Raw Blame
#include "veyra/pipeline/ResetCoordinator.h"

namespace veyra::pipeline {

void ResetCoordinator::notifyReset(ResetReason reason) {
    if (reason == ResetReason::None) { return; }
    ++resetCount_[static_cast<uint8_t>(reason)];
    if (!pending_) {
        pending_ = true;
        pendingReason_ = reason;
    }
}

uint64_t ResetCoordinator::beginFrame(uint64_t sequence) {
    if (pending_) {
        ++epoch_;
        lastReason_ = pendingReason_;
        lastResetSequence_ = sequence;
        pending_ = false;
        pendingReason_ = ResetReason::None;
    }
    return epoch_;
}

uint32_t ResetCoordinator::totalResets() const {
    uint32_t total = 0;
    for (int i = 1; i < static_cast<int>(ResetReason::_Count); ++i) {
        total += resetCount_[i];
    }
    return total;
}

} // namespace veyra::pipeline