Switching Buffers

Blitz3D Forums/Blitz3D Beginners Area/Switching Buffers

Q(Posted 2005) [#1]
Does switching back and forth between buffers slow down the majority of computers? Like in a loop for example.


jfk EO-11110(Posted 2005) [#2]
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.


Q(Posted 2005) [#3]
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?


DH(Posted 2005) [#4]
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.


Sir Gak(Posted 2005) [#5]
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)