Subscribe to this Thread
(Receive email notifications)
Pin To Profile
I'm looking for a way to optimize a bit my script.
I have a projected shadow on some of my sprite that is pretty dumb: I read every pixel of the sprite and print a pixel of shadow according to a given offset.
It implies that I ready every pixel of every sprite in need of a shadow.
Some optimization is needed because when I try to display a shadow for a huge set of sprite, the frame rate drops.
I was wondering if using Peek and Poke would be faster than Pget and Pset?
Any idea if it would speed up the thing?