FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
GLKeeper/src/Debug.cpp at main · codenamecpp/GLKeeper · GitHub
codenamecpp
/
GLKeeper
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
40
Code
Issues
0
Pull requests
0
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Security and quality
Insights
Expand file tree
Breadcrumbs
GLKeeper
/
src
/
Debug.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (40 loc) · 964 Bytes
Breadcrumbs
GLKeeper
/
src
/
Debug.cpp
Copy path
File metadata and controls
47 lines (40 loc) · 964 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
include
"
stdafx.h
"
#
include
"
Debug.h
"
DebugEngine
gDebug
;
DebugEngine::DebugEngine
()
: mDrawUiBounds()
, mFPSCounterMin(
1000
)
, mFPSCounterMax()
, mDrawSceneAabbTree()
, mNoDrawWaterLava()
, mNoDrawSceneObjects()
, mDrawPhysics()
{
}
void
DebugEngine::Initialize
()
{
mFPSDeltaTimeAccumulator
=
0
.
0f
;
mFPSCounter
=
0
;
mFPSCounterLast
=
0
;
mFPSCounterMin
=
1000
;
mFPSCounterMax
=
0
;
}
void
DebugEngine::Shutdown
()
{
}
void
DebugEngine::UpdateFrame
()
{
//
process fps
mFPSDeltaTimeAccumulator
+=
gTime
.
GetFrameDelta
(eGameClock::Realtime);
++
mFPSCounter
;
if
(
mFPSDeltaTimeAccumulator
>=
1
.
0f
)
{
mFPSDeltaTimeAccumulator
-=
1
.
0f
;
mFPSCounterLast
=
mFPSCounter
;
if
(
mFPSCounterLast
>
mFPSCounterMax
)
mFPSCounterMax
=
mFPSCounterLast
;
if
(
mFPSCounterLast
<
mFPSCounterMin
)
mFPSCounterMin
=
mFPSCounterLast
;
mFPSCounter
=
0
;
}
}
Back
|
FazBrowse Home
|
New Git URL