Page 1 of 1

GapiVFS - twice in memory?

PostPosted: Nov 23, 2006 @ 2:13pm
by Bunkai
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.

PostPosted: Nov 23, 2006 @ 2:52pm
by Johan
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. :-)

PostPosted: Nov 23, 2006 @ 4:22pm
by Bunkai
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.