MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DemoStartNewFrame

Function DemoStartNewFrame

Descent3/demofile.cpp:437–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void DemoStartNewFrame() {
438 if (Demo_flags != DF_RECORDING) {
439 return;
440 }
441
442 // Start with the gametime of this frame
443 cf_WriteByte(Demo_cfp, DT_NEW_FRAME);
444 cf_WriteFloat(Demo_cfp, Gametime);
445 cf_WriteFloat(Demo_cfp, Frametime);
446
447 if ((timer_GetTime() - Demo_last_pinfo) >= DEMO_PINFO_UPDATE) {
448 DemoWritePlayerInfo();
449 Demo_last_pinfo = timer_GetTime();
450 }
451}
452
453// Store object num, position, orientation
454// WB info, Anim states

Callers 2

GameFrameFunction · 0.85
DemoToggleRecordingFunction · 0.85

Calls 3

cf_WriteByteFunction · 0.85
cf_WriteFloatFunction · 0.85
DemoWritePlayerInfoFunction · 0.85

Tested by

no test coverage detected