Files
ppsspp/Core/FrameTiming.h

31 lines
612 B
C
Raw Permalink Normal View History

#pragma once
#include "Common/GPU/thin3d.h"
// See big comment in the CPP file.
namespace Draw {
class DrawContext;
}
2023-12-18 13:44:32 +01:00
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;
int presentInterval;
2023-12-18 13:44:32 +01:00
private:
double waitUntil_;
double *curTimePtr_;
};
extern FrameTiming g_frameTiming;
Draw::PresentMode ComputePresentMode(Draw::DrawContext *draw, int *interval);
2023-12-18 13:44:32 +01:00
void WaitUntil(double now, double timestamp, const char *reason);