thomas-alrek / JSGame

JavaScript + Canvas 2D game engine
GNU General Public License v2.0
56 stars 6 forks source link

Shadow bad performance - dev #11

Closed thomas-alrek closed 7 years ago

thomas-alrek commented 8 years ago

When adding the Shadow component to a GameObject, performance drops from 30 fps to 5 fps in Safari on Mac OS X 10.11.

It seems like shadows is drawn for all elements, and this causes each particle in the ParticleSystem to get a shadow.