Files
ppsspp/Core/FrameTiming.h
T
2025-10-20 21:28:38 +02:00

37 lines
732 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 ComputePresentMode(Draw::DrawContext *draw, bool fastForward);
bool FastForwardNeedsSkipFlip() const {
return fastForwardSkipFlip_;
}
Draw::PresentMode PresentMode() const {
return presentMode_;
}
private:
// For use on the next Present. These two are set by ComputePresentMode.
Draw::PresentMode presentMode_;
bool fastForwardSkipFlip_;
double waitUntil_;
double *curTimePtr_;
};
extern FrameTiming g_frameTiming;
void WaitUntil(double now, double timestamp, const char *reason);