First attempt to reduce load time of player deck selection screens.
This change makes use of caching the DeckStats and DeckStatsWrappers into singleton caches that get flushed when you quit the game. The initial load time will be significant as lazy loading has not been coded yet for the ai decks. TODO: lazy load the player and ai decks as they appear on the screen. Currently, each screen loads all decks.
This commit is contained in:
@@ -604,8 +604,7 @@ Spell * ActionStack::addSpell(MTGCardInstance * _source, TargetChooser * tc, Man
|
||||
}
|
||||
Spell * spell = NEW Spell(mCount, _source, tc, mana, payResult);
|
||||
addAction(spell);
|
||||
if (!game->players[0]->isAI() && _source->controller() == game->players[0] && 0
|
||||
== options[Options::INTERRUPTMYSPELLS].number)
|
||||
if (!game->players[0]->isAI() && _source->controller() == game->players[0] && 0 == options[Options::INTERRUPTMYSPELLS].number)
|
||||
interruptDecision[0] = DONT_INTERRUPT;
|
||||
return spell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user