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?
我必须在每一帧中画出数千个像素,来制作一个下落的沙子动画,直到现在我用雪碧把它们画出来。绘制(以及1x1纹理),但这只适用于分辨率为256x256或更低的分辨率。那么是否有一个更快的方法来绘制单个像素呢?
(Shaders will not work for my problem, since the logic is applied according to the pixels state)
(着色器对我的问题不起作用,因为逻辑是根据像素状态应用的)
1 个解决方案
#1
1
You could try drawing points. I found this but it is only for DirectX 9.
你可以试着画点。我找到了,但它只适用于directx9。
#1
1
You could try drawing points. I found this but it is only for DirectX 9.
你可以试着画点。我找到了,但它只适用于directx9。