Fastest way to read data into memory?

BlitzMax Forums/BlitzMax Programming/Fastest way to read data into memory?

JoshK(Posted 2006) [#1]
I am loading texture mipmaps straight from a file into memory. If I had a pointer for the memory position of the opened stream, I could even read the textures straight into OpenGL.

What is the fastest way to read a stream into a bank, or get a pointer for data in an open stream?


Dreamora(Posted 2006) [#2]
If you are able to create the Mipmaps from TPixmap, then loadpixmap(stream) (streams are valid urls) would be the fastest. BM has already functionality in to create OpenGL textures from TPixmap btw


GW(Posted 2006) [#3]
Readbank?