3 ms·
That's really not an excuse. Doing some back of the envelope math shows that even the full collection of all Hearthstone cards would easily fit into RAM: ~0.25
by hobofan 6y ago
That's really not an excuse. Doing some back of the envelope math shows that even the full collection of all Hearthstone cards would easily fit into RAM:
~0.25MB (size of a sample original artwork from[0]) * 3410 (number of playable cards in the game[1]) = ~850MB
> For a FIFA game everything is loaded beforehand. In a card game that has to hide information, it has to load as the game progresses.
During every single match of Hearthstone all the cards are also known beforehand (to the device), and they are a fraction of the full card collection.
[0]: https://hearthstonejson.com/docs/images.html https://hearthstonejson.com/docs/images.html
[1]: https://hearthstone.gamepedia.com/Card https://hearthstone.gamepedia.com/Card
- jayd16 6y agoSome things you might not be aware of: Hearthstone cards have several texture maps per card for the foil card effects. When textures are stored in ram they are not compressed (not as png or jpeg anyway). Its closer to a full 4 bytes per pixel. Textures also use mipmaps which take up an extra 33%. Not to mention the animations, effects and and the texture memory they bring. Its much more RAM than you think. Just look at the (fully compressed) install size of over 3GB. The menu textures do not take over 2GB. The game came out in 2014 when the latest iPhone had 1GB of RAM (less than 512MB usable for the whole app, essentially.) Its tuned to be under that cap, which forces a lot of disk reads instead of keeping things in RAM. >During every single match of Hearthstone all the cards are also known beforehand (to the device), and they are a fraction of the full card collection. This is actually false as some cards can spawn a random card from the full collection.