Videomemory question

This is a discussion on Videomemory question within the Game Programming forums, part of the General Programming Boards category; How many bytes of Videomemory does a 800x600x16bit surface need ?...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    60

    Videomemory question

    How many bytes of Videomemory does a 800x600x16bit surface need ?

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    simple math

    ((800*16*600)/8)/1024

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by frenchfry164
    simple math

    ((800*16*600)/8)/1024
    He said bytes, not kilobytes
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    oops, my bad.

    Just omit the "divide by 1024"

  5. #5
    Registered User Coder's Avatar
    Join Date
    Aug 2001
    Location
    Cairo, Egypt
    Posts
    128
    How many bytes of Videomemory does a 800x600x16bit surface need ?
    It depends.

    Generally, surfaces aren't strictly stored with the given width and height. Often, the dimensions are "pitch" and height. Pitch is often greater than width.
    That is, the video card stores the surfaces (textures) internally in the way that fits it (the card) best.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21