Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: graphics memory vs pixelformat

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2006
    Posts
    21

    graphics memory vs pixelformat

    How can I calculate the memory usage from the PIXELFORMATDESCRIPTOR. I am using WOGL functions.

    I seems my program works even the memory usage
    over the limit of my graphics card.
    I calculated the memory based on the pixel format
    such as color bit and depth bit.

    For example,
    MB=
    (1600*1200 resolution) *(32 bit color+ 24 depth+ etc)/1024/1024

    Is there something else I missed?

    -KB

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: graphics memory vs pixelformat

    You mixed bits and bytes.
    use :
    (1600*1200 resolution) *(32 bit color+ 24 depth+ etc)/8/1024/1024
    or :
    (1600*1200 resolution) *(4 bytes color+ 3 bytes depth+ etc)/1024/1024

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •