Original Post
Hi everybody. I'm currently developing a 2D game where the player will have the ability to draw shapes within the game, kind of like in Crayon Physics. I'm experimenting with ways of doing this. The current technique that I'm using is not very efficient. What I do is take the current position of the mouse and simply draw a pixel onto a texture by locking, writing and then unlocking the texture. As I said this is not very efficient and the game does lag when doing this. Is their a better way to do this?