Commit 803a16d1 authored by 16이상민's avatar 16이상민

Performance improvements: SetSelect solves the problem of overloading the...

Performance improvements: SetSelect solves the problem of overloading the program by creating too many note objects in the scene. However, some overloading occurs when creating note objects of selected set in InGame scene.
parent 328afc85
...@@ -20,7 +20,17 @@ namespace TrackAnalysis ...@@ -20,7 +20,17 @@ namespace TrackAnalysis
public List<string> TrackList { get; private set; } public List<string> TrackList { get; private set; }
public List<Note> Notes { get; private set; } public List<Note> Notes
{
get
{
TrackNotes notes = new TrackNotes();
notes.ExtractNotes(NoteData, BeatInterval);
return notes.Notes.ToList();
}
}
private MultiDictionary<string, string> NoteData;
public public
TrackInfo( TrackInfo(
...@@ -38,9 +48,7 @@ namespace TrackAnalysis ...@@ -38,9 +48,7 @@ namespace TrackAnalysis
ExtractTrackHeader(parseResult); ExtractTrackHeader(parseResult);
TrackNotes notes = new TrackNotes(); NoteData = parseResult;
notes.ExtractNotes(parseResult, BeatInterval);
Notes = notes.Notes.ToList();
} }
private private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment