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

Function DBG_DrawStatBeforeFrameStep

ogsr_engine/xrGame/PHDebug.cpp:536–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void DBG_DrawStatBeforeFrameStep()
537{
538 if (ph_dbg_draw_mask.test(phDbgDrawObjectStatistics))
539 {
540 static float obj_count = 0.f;
541 static float update_obj_count = 0.f;
542 obj_count = obj_count * 0.9f + float(ph_world->ObjectsNumber()) * 0.1f;
543 update_obj_count = update_obj_count * 0.9f + float(ph_world->UpdateObjectsNumber()) * 0.1f;
544 DBG_OutText("Active Phys Objects %3.0f", obj_count);
545 DBG_OutText("Active Phys Update Objects %3.0f", update_obj_count);
546 }
547}
548
549void DBG_DrawStatAfterFrameStep()
550{

Callers 1

OnFrameMethod · 0.85

Calls 4

DBG_OutTextFunction · 0.85
ObjectsNumberMethod · 0.80
UpdateObjectsNumberMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected