Log In  
Follow
lvictorino
SHOW MORE

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?

Thanks.

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

Follow Lexaloffle:          
Generated 2024-02-29 22:05:15 | 0.065s | Q:5