I've started using sprites into my game and I have a problem when setting the sprites. I have this flash effect that happens when I change a sprite, you'll be able to see the sprite being changed and see a flash of the sprite from the top right corner or its home position. I tried to stop this flashing effect by having the sprite be cahnge after vsync has been called but that ends up with the sprite not being changed at certain times. How can I remove the flash effect when chainging a sprite?