Skip to content

Commit

Permalink
dont load noteskin resources for every color
Browse files Browse the repository at this point in the history
as far as i can tell the color has no impact on what resource gets loaded, meaning we load the same resources 9x over when we could just refpass them after loading the first group

needs investigation?
  • Loading branch information
MinaciousGrace committed Nov 14, 2018
1 parent 6c1790e commit 08798a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NoteDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ MakeNoteResource(const RString& sButton,
NOTESKIN->GetCurrentNoteSkin(), sElementAndType, pn, gc);

map<NoteSkinAndPath, NoteResource*>::iterator it =
g_NoteResource[Color].find(nsap);
g_NoteResource["4th"].find(nsap); // i cant figure out how color changes what actors are loaded... -mina
if (it == g_NoteResource[Color].end()) {
auto* pRes = new NoteResource(nsap);

Expand Down

0 comments on commit 08798a2

Please sign in to comment.