Open Source & Free  

Performant Radial Gradients

Performant Radial Gradients

Header Image

One of the first Codename One performance tips is: “Don’t use gradients”. We already wrote about improved performance to gradients in the past but that covered linear gradients and didn’t cover radials on iOS.

With recent commits radial gradients are now performant on iOS/Android and elsewhere. On iOS Steve implemented gradients as a shader which should deliver great performance.

I’m not sure if this is good enough to deliver the level of performance we see from image borders and it’s harder to work with low level graphics primitives.

I think the old assessments still stand. Gradients perform better so it might not be a problem to use them, but I would still use & recommend images over them.

Leave a Reply