Ram memory



  • On 06/02/2014 at 01:15, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R14 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hi Folks,

    is there a way to get the available computer's memory? Or preferably what's free? I've come across this in the docs "GeMemGetFreePhysicalMemoryEstimate()" but it's returning a negative value. Is this correct?

    Just on another note, how can one calculate the memory space required for a bitmap? For instance, a 1920x1080 at 32B - if I know the resolution etc, how can I calculate the memory that image takes up?

    Cheers,

    WP.



  • On 06/02/2014 at 03:19, xxxxxxxx wrote:

    Hi,

    GeMemGetFreePhysicalMemoryEstimate() is returning a positive value for me. Note that it returns an unsigned integer. I'll asked the developers about what it means.

    To know the memory usage of an image, allocate one and call BaseBitmap::GetMemoryInfo()/MultipassBitmap::GetMemoryInfo()



  • On 11/02/2014 at 20:07, xxxxxxxx wrote:

    Hi Yannick,

    I do my programming and testing through the 32bit version. Might that account for the negative value?

    The value itself looks a little like the number of free bytes..?

    WP.


Log in to reply