JoshDSommer / nativescript-ngx-shadow

Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Apache License 2.0
9 stars 6 forks source link

Poor perfomance on iOS #7

Closed edusperoni closed 5 years ago

edusperoni commented 6 years ago

Which platform(s) does your issue occur on?

iOS

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Add multiple shadows to a screen and watch the FPS drop.

This is a reference issue. I'm working on a PR. Basically, we're not setting a shadowPath to our shadow, which means it's calculating each pixel dynamically. See: http://angelolloqui.com/blog/30-iOS-Performance-tips-I-Drawing-shadows

I'll put some work on shadowPath and rasterization options.