lvictorino [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=14384 Pget VS Peek / Pset VS Poke <p>Hi there,<br /> I'm looking for a way to optimize a bit my script.<br /> 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.<br /> It implies that I ready every pixel of every sprite in need of a shadow.<br /> Some optimization is needed because when I try to display a shadow for a huge set of sprite, the frame rate drops.</p> <p>I was wondering if using Peek and Poke would be faster than Pget and Pset?<br /> Any idea if it would speed up the thing?</p> <p>Thanks.</p> https://www.lexaloffle.com/bbs/?tid=28257 https://www.lexaloffle.com/bbs/?tid=28257 Mon, 19 Dec 2016 16:09:52 UTC