Using FreeBASIC I created a plugin that included a simple 2D routine. The routine manipulated DBPro's backbuffer, (Get BackBuffer Ptr()). However, it runs very slow. I then created my own backbuffer, and drew onto it. This did greatly improve the routine's speed, but when I copied the buffer to DBPro's backbuffer, (Copy Memory ()) the routine slowed again. To ensure that the fault wasn't FreeBASIC, I created the routine using DevC++ and PureBASIC. All encoutered the same problem. I even rewrote the routine in Assembly.
Is there a way to copy a buffer to DBPro's backbuffer faster?