blob: 24eb11bb944f0bb016fb7d70d9a4bdf0f580f92e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
struct FrameStats
{
typedef signed long long Timestamp;
void reset() {
fixedBehaviourManagerDt = 0;
fixedPhysicsManagerDt = 0;
dynamicBehaviourManagerDt = 0;
coroutineDt = 0;
skinMeshUpdateDt = 0;
animationUpdateDt = 0;
renderDt = 0;
fixedUpdateCount = 0;
}
Timestamp fixedBehaviourManagerDt;
Timestamp fixedPhysicsManagerDt;
Timestamp dynamicBehaviourManagerDt;
Timestamp coroutineDt;
Timestamp skinMeshUpdateDt;
Timestamp animationUpdateDt;
Timestamp renderDt;
int fixedUpdateCount;
};
FrameStats const& GetFrameStats();
|