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

Method OnFrame

ogsr_engine/xrGame/PHWorld.cpp:161–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void CPHWorld::OnFrame()
162{
163 // Msg ("------------- physics: %d / %d",u32(Device.dwFrame),u32(m_steps_num));
164 //просчитать полет пуль
165 /*
166 Device.Statistic->TEST0.Begin ();
167 Level().BulletManager().Update ();
168 Device.Statistic->TEST0.End ();
169 */
170#ifdef DEBUG
171 DBG_DrawFrameStart();
172 DBG_DrawStatBeforeFrameStep();
173#endif
174 Device.Statistic->Physics.Begin();
175 FrameStep(Device.fTimeDelta);
176 Device.Statistic->Physics.End();
177#ifdef DEBUG
178 DBG_DrawStatAfterFrameStep();
179
180#endif
181}
182
183//////////////////////////////////////////////////////////////////////////////
184// static dReal frame_time=0.f;

Callers

nothing calls this directly

Calls 5

DBG_DrawFrameStartFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected