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.
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.