Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/FrameTiming.h
3185 views
1
#pragma once
2
3
#include "Common/GPU/thin3d.h"
4
5
// See big comment in the CPP file.
6
7
namespace Draw {
8
class DrawContext;
9
}
10
11
class FrameTiming {
12
public:
13
void DeferWaitUntil(double until, double *curTimePtr);
14
void PostSubmit();
15
void Reset(Draw::DrawContext *draw);
16
17
// Some backends won't allow changing this willy nilly.
18
Draw::PresentMode presentMode;
19
int presentInterval;
20
21
private:
22
double waitUntil_;
23
double *curTimePtr_;
24
};
25
26
extern FrameTiming g_frameTiming;
27
28
Draw::PresentMode ComputePresentMode(Draw::DrawContext *draw, int *interval);
29
30
void WaitUntil(double now, double timestamp, const char *reason);
31
32