MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Show

Method Show

ogsr_engine/xr_3da/Stats.cpp:55–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void CStats::Show()
56{
57 if (psDeviceFlags.test(rsCameraPos) || psDeviceFlags.test(rsStatistic) || !errors.empty())
58 {
59 // Stop timers
60 {
61 EngineTOTAL.FrameEnd();
62 Sheduler.FrameEnd();
63 UpdateClient.FrameEnd();
64 Physics.FrameEnd();
65 ph_collision.FrameEnd();
66 ph_core.FrameEnd();
67 Animation.FrameEnd();
68 AI_Think.FrameEnd();
69 AI_Range.FrameEnd();
70 AI_Path.FrameEnd();
71 AI_Node.FrameEnd();
72 AI_Vis.FrameEnd();
73 AI_Vis_Query.FrameEnd();
74 AI_Vis_RayTests.FrameEnd();
75
76 RenderTOTAL.FrameEnd();
77 RenderCALC.FrameEnd();
78 RenderCALC_HOM.FrameEnd();
79 RenderDUMP.FrameEnd();
80 RenderDUMP_Wait.FrameEnd();
81 RenderDUMP_WM.FrameEnd();
82 RenderDUMP_DT_VIS.FrameEnd();
83 RenderDUMP_DT_Render.FrameEnd();
84 RenderDUMP_DT_Cache.FrameEnd();
85
86 Sound.FrameEnd();
87 Input.FrameEnd();
88 clRAY.FrameEnd();
89 clBOX.FrameEnd();
90 clFRUSTUM.FrameEnd();
91
92 BulletManager.FrameEnd();
93 cam_Update.FrameEnd();
94 dxRainRender.FrameEnd();
95
96 g_SpatialSpace->stat_insert.FrameEnd();
97 g_SpatialSpace->stat_remove.FrameEnd();
98 g_SpatialSpacePhysic->stat_insert.FrameEnd();
99 g_SpatialSpacePhysic->stat_remove.FrameEnd();
100 }
101
102 // calc FPS & TPS
103 if (Device.fTimeDeltaReal > EPS_S)
104 {
105 float fps = 1.f / Device.fTimeDeltaReal;
106
107 float fOne = 0.3f;
108 float fInv = 1.f - fOne;
109
110 fFPS = fInv * fFPS + fOne * fps;
111
112 if (RenderTOTAL.result > EPS_S)

Callers 3

CApplicationMethod · 0.45
OnEventMethod · 0.45
IR_OnKeyboardPressMethod · 0.45

Calls 15

_draw_cam_posFunction · 0.85
color_rgbaFunction · 0.85
FrameEndMethod · 0.80
GetCacheStatPolysMethod · 0.80
SetHeightIMethod · 0.80
statisticMethod · 0.80
OutSetMethod · 0.80
OutNextMethod · 0.80
OutSkipMethod · 0.80
OutDataMethod · 0.80
GuardVertsMethod · 0.80
GuardDrawCallsMethod · 0.80

Tested by

no test coverage detected