12-24-2011 11:39 PM
So I've made an app where I have a tiled background of pngs with transparent areas and these images change every so often based on either user or timer events. Now my issue lies here:
- If I use images with no transparent areas then the app works fine
- If I use the images that I need to (with transparances) then the app suffers from considerable slowdown (when a few of the images have to change at once then the app lags for about 2 seconds before finally showing the updated images)
Is there any way to fix this issue? I've thought about not using images with transparancies, but that defeats the whole purpose because I need the background to show through some parts.
12-25-2011 08:49 AM
I use a lot of PNG's in my applications with transparancy for icons and buttons without any problems. Can you post the code how you add the images?
Merry Christmas btw!
12-25-2011 11:27 AM
If I posted the code I'd have to post 1000+ lines cause a they're altered in a bunch of places but esentially I tiled the whole screen with 50x50px simplebuttons, where each simple button has a transparency image for the up and down state. and when you press them all really quickly then the app just freezes and the down state only shows after a couple of seconds. BUT if I use regular images (no transparency) then it works fine.
01-03-2012 01:26 PM
There could be a number of things that you could look at.