I read it's extremly slow because it's a lot slower to fetch from the hardware (gfx card) than it is to send? Or something like that.
I read it's extremly slow because it's a lot slower to fetch from the hardware (gfx card) than it is to send? Or something like that.
Reading a pixels value from 2d co-ords requires modulo and divide, which is one reason its slower than writing.
One common way to speed up pixel writing is to allocate a buffer in RAM, kind of like a temporary screen, do all your drawing to the array and when everything is finished blit the whole thing to the screen (or whatever surface) in one go.
Wow, thanks for all the info, plenty of stuff to go at.... including a basic understanding of modern graphics writing haha!
merry christmas!