Texture caching off by default
This commit is contained in:
+20
-4
@@ -777,10 +777,25 @@ void Song::SaveToDWIFile()
|
||||
|
||||
void Song::AddAutoGenNotes()
|
||||
{
|
||||
for( NotesType ntMissing=(NotesType)0; ntMissing<NUM_NOTES_TYPES; ntMissing=(NotesType)(ntMissing+1) )
|
||||
// This is way too slow. Only autogen dance->pump and pump->dance
|
||||
CArray<NotesType,NotesType> aMissingNotesTypes;
|
||||
if( !SongHasNotesType(NOTES_TYPE_DANCE_SINGLE) )
|
||||
aMissingNotesTypes.Add( NOTES_TYPE_DANCE_SINGLE );
|
||||
if( !SongHasNotesType(NOTES_TYPE_DANCE_DOUBLE) )
|
||||
aMissingNotesTypes.Add( NOTES_TYPE_DANCE_SOLO );
|
||||
if( !SongHasNotesType(NOTES_TYPE_DANCE_SOLO) )
|
||||
aMissingNotesTypes.Add( NOTES_TYPE_PUMP_SINGLE );
|
||||
if( !SongHasNotesType(NOTES_TYPE_DANCE_SINGLE) )
|
||||
aMissingNotesTypes.Add( NOTES_TYPE_PUMP_DOUBLE );
|
||||
|
||||
// for( NotesType ntMissing=(NotesType)0; ntMissing<NUM_NOTES_TYPES; ntMissing=(NotesType)(ntMissing+1) )
|
||||
// {
|
||||
// if( SongHasNotesType(ntMissing) )
|
||||
// continue;
|
||||
|
||||
for( int i=0; i<aMissingNotesTypes.GetSize(); i++ )
|
||||
{
|
||||
if( SongHasNotesType(ntMissing) )
|
||||
continue;
|
||||
NotesType ntMissing = aMissingNotesTypes[i];
|
||||
|
||||
// missing Notes of this type
|
||||
int iNumTracksOfMissing = GAMEMAN->NotesTypeToNumTracks(ntMissing);
|
||||
@@ -817,7 +832,8 @@ void Song::AddAutoGenNotes()
|
||||
pNewNotes->m_sDescription = pOriginalNotes->m_sDescription + " (autogen)";
|
||||
pNewNotes->m_NotesType = ntMissing;
|
||||
|
||||
NoteData originalNoteData, newNoteData;
|
||||
static NoteData originalNoteData;
|
||||
static NoteData newNoteData;
|
||||
pOriginalNotes->GetNoteData( &originalNoteData );
|
||||
newNoteData.LoadTransformedSlidingWindow( &originalNoteData, iNumTracksOfMissing );
|
||||
pNewNotes->SetNoteData( &newNoteData );
|
||||
|
||||
Reference in New Issue
Block a user