Improved card animation performance

+ Cards now animate smoother and faster
+ removed redundant computations performed each frame
This commit is contained in:
Matt Lowe 2014-10-16 01:31:53 +02:00
parent dc58d1a61e
commit 2193d247d0
3 changed files with 10 additions and 5 deletions

View file

@ -262,7 +262,7 @@ void GameScene::registerAnimationItem(AbstractCardItem *card)
{
cardsToAnimate.insert(static_cast<CardItem *>(card));
if (!animationTimer->isActive())
animationTimer->start(50, this);
animationTimer->start(15, this);
}
void GameScene::unregisterAnimationItem(AbstractCardItem *card)