00:00
00:00
Newgrounds Background Image Theme

AllHailInsomnia just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

lag by gradient/alpha

453 Views | 3 Replies
New Topic Respond to this Topic

lag by gradient/alpha 2013-09-07 06:44:57


I think flash starts eating system performances if I stick gradients and 50% alpha channels everywhere.

if I import a photoshop image of a gradient instead of using gradient within flash, will there be less lag, or is it pretty much the same thing?

Response to lag by gradient/alpha 2013-09-07 07:00:12


At 9/7/13 06:44 AM, ShadowWhoWalks wrote: if I import a photoshop image of a gradient instead of using gradient within flash, will there be less lag, or is it pretty much the same thing?

It depends.
If the gradient you bring in is a vector graphic, it doesn't change that much.
Not sure if PS is capable of creating vector gradients.

If the gradient is a bitmaps graphic, it can help.
If the gradient does not have to be recalculated every time, this can be faster.
In fact, it doesn't matter if it is a gradient or some other image.
If you do Animations with it, that are not only translating the image, the image has to be recalculated, which can cause lag.

Response to lag by gradient/alpha 2013-09-07 07:16:27


At 9/7/13 07:00 AM, milchreis wrote: It depends.
If the gradient you bring in is a vector graphic, it doesn't change that much.
Not sure if PS is capable of creating vector gradients.

If the gradient is a bitmaps graphic, it can help.
If the gradient does not have to be recalculated every time, this can be faster.
In fact, it doesn't matter if it is a gradient or some other image.
If you do Animations with it, that are not only translating the image, the image has to be recalculated, which can cause lag.

it'll be a part of a scrolling map under a buggy AS2 vcam.

I'm considering replacing every gradient globe to bitmaps, thanks for the heads up

Response to lag by gradient/alpha 2013-09-07 07:19:31


At 9/7/13 07:16 AM, ShadowWhoWalks wrote: it'll be a part of a scrolling map under a buggy AS2 vcam.

I'm considering replacing every gradient globe to bitmaps, thanks for the heads up

You could also try cacheAsBitmap, which essentially does the same thing.
By all means though: If you have concerns about performance, As3.