16 lines
546 B
C++
16 lines
546 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
#pragma once
|
|
#include <cstddef>
|
|
struct GimeGpu;
|
|
namespace VCC {
|
|
enum class FrameStop { Complete, Halted, Budget, Stalled };
|
|
struct FrameResult {
|
|
FrameStop reason;
|
|
std::size_t cycles;
|
|
};
|
|
// Execute synchronously until a frame, debugger stop, or safety budget. A
|
|
// partial frame can be resumed. The final instruction may exceed the budget.
|
|
// No wall-clock pacing, screen locking, or audio output occurs here.
|
|
FrameResult RunFrame(GimeGpu& gpu, int (*execute)(int), std::size_t cycleBudget);
|
|
}
|