Skip to content

Commit

Permalink
clear out nerv/serialized data from notedata upon init and leave myse…
Browse files Browse the repository at this point in the history
…lf a relatively important note
  • Loading branch information
MinaciousGrace committed Jun 13, 2017
1 parent 2e3e980 commit bc4b113
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NoteData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ REGISTER_CLASS_TRAITS( NoteData, new NoteData(*pCopy) )

void NoteData::Init()
{
UnsetNerv();
UnsetSerializedNoteData();
UnsetSerializedNoteData2();
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
}

Expand Down
2 changes: 2 additions & 0 deletions src/Steps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ void Steps::CalcEtternaMetadata() {
//MinaCalc2(stuffnthings, GetNoteData().SerializeNoteData2(etaner), 1.f, 0.93f);

ChartKey = GenerateChartKey(*m_pNoteData, GetTimingData());

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

Expand Down

0 comments on commit bc4b113

Please sign in to comment.