Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Ram memory

    SDK Help
    0
    3
    276
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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()

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post