PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

GapiVFS - twice in memory?

Hello, I am reading documentation on using GAPI VFS. From what I read on http://www.gapidraw.com/docs/gapidraw/3 ... -frame.htm, it iseems me that GAPI VSF conusmes twice amount of memory than is really needed.

Firstly, on CreateVFS(), when the whole file is probably loaded to the memory. I assume this from a flag returned by CreateVFS(), GDERR_OUTOFMEMORY.

Secondly, on CGapiFileBuffer::Open(), when the file is decompressed and stored in the memory, as the documenation literally says.

Is that ture please?
With regards,
Rene.
GapiVFS uses a memory mapped file. Should not take up too much memory. All GapiDraw operations that allocate heap memory can return out of memory, even if it's just a few bytes. :-)
Hello Johan,

Thank you very much for information. I assume that what CreateVFS() returns is very small file not whole archive.

Thank you and have a nice day,
Rene.