Game Development Community

C++ alocation memory

by Cobra · in Technical Issues · 04/09/2005 (11:12 am) · 1 replies

I am creating a game which requires of course some memory. Now it can be alocated dinamically but my question is , if i create a static vector of any size it will just cut of from the harddisk memory if more nedeed or it will resume at RAM memory?

#1
04/09/2005 (1:14 pm)
A vector will allocate off the Heap. Programs always use RAM. The operating system will swap out memory to the hard drive if there is not enough of it to go around. Do some reading on Virtual Memory for more information.