Skip to content

Commit bc4b113

Browse files
clear out nerv/serialized data from notedata upon init and leave myself a relatively important note
1 parent 2e3e980 commit bc4b113

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/NoteData.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ REGISTER_CLASS_TRAITS( NoteData, new NoteData(*pCopy) )
1717

1818
void NoteData::Init()
1919
{
20+
UnsetNerv();
21+
UnsetSerializedNoteData();
22+
UnsetSerializedNoteData2();
2023
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
2124
}
2225

‎src/Steps.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ void Steps::CalcEtternaMetadata() {
378378
//MinaCalc2(stuffnthings, GetNoteData().SerializeNoteData2(etaner), 1.f, 0.93f);
379379

380380
ChartKey = GenerateChartKey(*m_pNoteData, GetTimingData());
381+
382+
// need to figure out a better place to put this as it is fairly slow
381383
for (unsigned i = 0; i < std::thread::hardware_concurrency(); ++i)
382384
SONGMAN->keyconversionmap.emplace(GenerateBustedChartKey(*m_pNoteData, GetTimingData(), i), ChartKey);
383385

0 commit comments

Comments
 (0)