Textures in Video Buffer
Blitz3D Forums/Blitz3D Programming/Textures in Video Buffer
| ||
Hello, I've a texture which I fill each frame and then display using a quad. When the texture is kept in VRam it takes 3ms but when I keep it in normal ram it takes 2.3ms. I am filling the texture from arrays using writepixelfast and locking the buffer. I always thought keeping it in VRam was faster. I have a shadow texture which is much (10x) faster in VRam. I think it must be because the processor is doing a lot of the filling of the texture? Is there a rule to follow? Marg |
| ||
What are you filling the quad with? A solid colour? |
| ||
I'm filling the quad with the texture. It is for the HUD radar. I fill the texture with the 'ground' and then draw small rectangles for the ships on top. I've just found out what the problem is. The rect's are really slow when the texture is in VRam. The filling of the texture with ground takes the same time in/out of VRam but the (128 say) rects are very slow when the texture is in VRam. Don't know why Marg |
| ||
Why don't you make the rects quads aswell, this will be much faster. And parent those smaller quads to your radar quad. Just a thought, though. |