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.

The fastest way to write to a buffer would probably be using LockedPixels and a CopyBank loop to transfer a line at a time from a native blitz array [].

LockedFormat is for use with LockedPixels not LockBuffer, for you situation I would test if mode is not 5,6,5 and do a tidy exit, I would guess only one form of legacy matrox user is going to suffer.

Optional 640x480 support will give you most dramatic speedup of course.