| 159 | } |
| 160 | |
| 161 | void 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; |
nothing calls this directly
no test coverage detected