开发者

DirectX: Fastest way to draw Pixels

开发者 https://www.devze.com 2023-03-05 20:51 出处:网络
I have to draw several thousands of pixels per frame for a falling sand animation, up to now I drawed them with Sprite.Draw (and a 1x1 Texture), but this only worked for resolutions 256x256 or lower.

I have to draw several thousands of pixels per frame for a falling sand animation, up to now I drawed them with Sprite.Draw (and a 1x1 Texture), but this only worked for resolutions 256x256 or lower. So is there an faster alternative to draw individual pixels?

(Shaders will not w开发者_StackOverflow中文版ork for my problem, since the logic is applied according to the pixels state)


You could try drawing points. I found this but it is only for DirectX 9.

0

精彩评论

暂无评论...
验证码 换一张
取 消