Files
ppsspp/Core/FrameTiming.h
T
2025-10-19 18:18:06 +02:00

30 lines
575 B
C++

#pragma once
#include "Common/GPU/thin3d.h"
// See big comment in the CPP file.
namespace Draw {
class DrawContext;
}
class FrameTiming {
public:
void DeferWaitUntil(double until, double *curTimePtr);
void PostSubmit();
void Reset(Draw::DrawContext *draw);
// Some backends won't allow changing this willy nilly.
Draw::PresentMode presentMode;
private:
double waitUntil_;
double *curTimePtr_;
};
extern FrameTiming g_frameTiming;
Draw::PresentMode ComputePresentMode(Draw::DrawContext *draw);
void WaitUntil(double now, double timestamp, const char *reason);