varkor / pokengine

An online Pokémon battle system for the web
http://varkor.com/pokengine/battle/
MIT License
54 stars 11 forks source link

Cache sprites more efficiently #185

Open varkor opened 9 years ago

varkor commented 9 years ago

At the moment, every single Sprite draw call goes through the File object. This makes far too many unnecessary calls. There should be an intermediate cache. This should speed things up (hopefully considerably).