Log In  
:: Unfold ::

Hi there,
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?


P#33724 2016-12-19 16:09 ( Edited 2017-01-26 00:05)

Follow Lexaloffle:          
Generated 2023-03-24 06:48:52 | 0.060s | Q:5