MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / startRecording

Method startRecording

samples/SampleBase/blast/BlastReplay.cpp:60–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void BlastReplay::startRecording(ExtPxManager& manager, bool syncFamily, bool syncPhysics)
61{
62 if (isRecording())
63 return;
64
65 m_sync->releaseSyncBuffer();
66
67 if (syncFamily || syncPhysics)
68 {
69 std::vector<ExtPxFamily*> families(manager.getFamilyCount());
70 manager.getFamilies(families.data(), (uint32_t)families.size());
71 for (ExtPxFamily* family : families)
72 {
73 if (syncPhysics)
74 {
75 m_sync->syncFamily(*family);
76 }
77 else if (syncFamily)
78 {
79 m_sync->syncFamily(family->getTkFamily());
80 }
81 }
82 }
83
84 m_isRecording = true;
85}
86
87void BlastReplay::stopRecording()
88{

Callers 1

drawUIMethod · 0.80

Calls 6

releaseSyncBufferMethod · 0.80
getFamilyCountMethod · 0.80
getFamiliesMethod · 0.80
syncFamilyMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected