Writing pixels to screen FAST?

BlitzMax Forums/BlitzMax Programming/Writing pixels to screen FAST?

bytecode77(Posted 2008) [#1]
hi again!

is there a way to write pixels to the screen without using a pixmap. pixmaps are slow for that matter. also plot is too slow for this either.

this should not be done via openGL. at best, it should be software rendered

thanks :)
(i promise, i will not post so many topics soon anymore)


GfK(Posted 2008) [#2]
draw pixels on pixmap, unlock pixmap (= TImage), draw TImage?


bytecode77(Posted 2008) [#3]
k, will do that
thx!


EOF(Posted 2008) [#4]
Have a look at this method. Although it uses pixmaps the method used to set the pixels is really fast

(The demo only seems to work in non-debug mode for me though)






There is also a faster version of drawing a pixmap to the screen too (OpenGL):



ImaginaryHuman(Posted 2008) [#5]
How is that drawpixmap faster?

Are you saying that switching off blending and texturing makes it faster?

And what is the glBitmap doing to help matters?

DC - you may want to also try a vertex buffer of points.


bytecode77(Posted 2008) [#6]
thanks for the example, i'll stick to the first one :)