Thread: how would i go about reducing the memory my game takes up?

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    106

    how would i go about reducing the memory my game takes up?

    Myself and someone else have deduced that my game takes up too much memory to compile...any clues as to how I might go about reducing the memory my game takes up? I've tried changing some of my int variables into short ints, but then I get the "conversion may loose signifcant digits" crap...any other possibilities? Thanks alot.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    How much memory your program uses should not make any difference when it compiles, only when it runs.

    The average windows computer should have over 500megs of swap space, and if your program uses more than that, then you better take another look at your code.

    And if your exe gets larger than a meg, you might want to break it into several dll's.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    106

    was thinking the same thing

    I was thinking the same thing...I wouldn't think my POS game could take up that much memory. Its 13,000 lines of code, but there aren't any graphics (its all text-based, DOS app)...so I have no clue whats going on. But thanks.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    13

    Error

    Heres the error.

    Can anyone help at all?????

    Exceeded memory limit for block Line number cache in module the warrior chronicles31.cpp


    Its very strange.
    http://www.t-p-n.co.uk//
    check it out

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    yeah thats the error there..lol, if anyone has ANY clue, i would appreicate it..ive spent a while sepereating it up into different headers but i get the exact same error.
    thanks again

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    What compiler is it, and whats the error code number?

    Ill try to look it up.

  7. #7
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    "And if your exe gets larger than a meg, you might want to break it into several dll's." well i could be wrong, but id say 1meg is OK, i mean, look at a lot of games, theyre main exe is like 8 megs or so....but its true, you will have better performance teh smaller your exe is

  8. #8
    Registered User
    Join Date
    Sep 2001
    Posts
    412
    How large is the executable itself?

    Depending on compiler options, you can create a LOT of temp files that are huge, but still have a small program. This happens especially with precompiled headers -- I've gotten my precompiled header files up to over 64 MB for a 700 KB program.

    Is the problem that you can't compile because of memory concerns?

  9. #9
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    Well I'm using Borland 5.02. Its a fatal error and it dosen't give me the error number.
    The .exe size is 591k and the .cpp and the header file combine to 826k. Any suggestions? Thanks a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mutex and Shared Memory Segment Questions.
    By MadDog in forum Linux Programming
    Replies: 14
    Last Post: 06-20-2010, 04:04 AM
  2. what language should i use to
    By roobert in forum Game Programming
    Replies: 34
    Last Post: 09-11-2007, 10:54 PM
  3. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  4. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-12-2004, 11:38 PM
  5. My Memory Game
    By jazy921 in forum C Programming
    Replies: 0
    Last Post: 05-05-2003, 05:13 PM