I’d recommend using the draw
functions if you can, as it should be a bit more performant and should give some additional flexibility that would be harder when setting pixels directly. If you need a texture from it, you could use a Viewport to make a texture from the draw
functions.