mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-22 15:48:56 +00:00
27 lines
471 B
C++
27 lines
471 B
C++
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <chrono>
|
||
|
|
|
||
|
|
namespace Common::ADPF {
|
||
|
|
|
||
|
|
enum class Session {
|
||
|
|
Render,
|
||
|
|
Background,
|
||
|
|
};
|
||
|
|
|
||
|
|
bool IsSessionSupported(Session session);
|
||
|
|
|
||
|
|
bool AddCurrentThread(Session session);
|
||
|
|
void RemoveCurrentThread();
|
||
|
|
|
||
|
|
void SetTargetWorkDuration(std::chrono::nanoseconds target);
|
||
|
|
|
||
|
|
void ReportFrameInterval();
|
||
|
|
|
||
|
|
void Shutdown();
|
||
|
|
|
||
|
|
} // namespace Common::ADPF
|