mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
Improved card animation performance
+ Cards now animate smoother and faster + removed redundant computations performed each frame
This commit is contained in:
parent
dc58d1a61e
commit
2193d247d0
3 changed files with 10 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue