CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Core/FrameTiming.h
Views: 1401
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);
31
32