Switching Buffers
Blitz3D Forums/Blitz3D Beginners Area/Switching Buffers
| ||
Does switching back and forth between buffers slow down the majority of computers? Like in a loop for example. |
| ||
you mean SetBuffer ? AFAIK this won't slow things down in a relevant amount. At the other hand accessing the pixels of some buffers, esp. texturebuffers can be very slow. |
| ||
Yeah. I was trying to make a texture editor work real time in a game. Like draw on a blank image, then apply it to a entity using Setbuffer TextureBuffer() all in a single loop. So this would be slow for most computers? |
| ||
Every command you run will slow down things. When creating the texture, create it with the 256 flag (to store the texture in VRam), that way the slow down isnt as much when your writting to the texture buffer. |
| ||
Write to an image, then when finished copy it to a texture. Should be faster, FWIK (From What I Know) WAINTM (Which Admittedly Is Not That Much) |