Results 1 to 4 of 4

Thread: Size of a game

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Lebanon
    Posts
    90

    Size of a game

    Hi all of you.
    I have a simple question: If I have a lot of surfaces I'm blitting into will this affect the size of my game?
    Thank you.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    yes, but in considerably more on memory usage, and also more important than the size of the executable.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Surfaces have a small fixed overhead, I don't know how much but I shouldn't think more that a kilobyte, and then there is the actual image data. If you have a 32-bit surface at 800x600, it will be 32*800*600 bits of image data, or 4*800*600 bytes, which is 1875 Kb, or a little over 1.8 Mb. That has to be stored somewhere, either in system memory or video memory, depending where you specify it should and where there is room for it at runtime. If you have lots of large surfaces at high colour depths, you will use up a lot of memory with textures, so if you have lots of textures to load in your game (like more than 10 megabytes maybe, you decide what's acceptable though) you may want to load the surfaces as they're needed and unload ones you don't need while the game is running.
    Harry.

    "From one thing, know ten thousand things."

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Lebanon
    Posts
    90
    Ok thank you.

Posting Permissions

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



Click Here to Expand Forum to Full Width