Fast writing to a screen buffer

Blitz3D Forums/Blitz3D Beginners Area/Fast writing to a screen buffer

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi, basically trying to write a 'list' of 'pixels' to the screen buffer.

After doing a LockBuffer, is using WritePixelFast the fastest possible way. ( what exactly does LockBuffer do? )
Is there a way to find the address of the buffer and write directly?

I'm assuming that WritePixel is slower but why have both?

Also after initialising the screen to 1024,768,16 do I need to do a LockedFormat() to find out the r,g,b format of the pixels. Mine says 5,6,5 but must I check in case other peoples computer says otherwise?

Am I right in thinking alpha ( what ever it is ) is not used in 16bit screens?

I'm using B+
Thanks in advance
Marg