• Memory Usage for a Game
    14 replies, posted
How much is normal? I'm working on my project so far it loads the images for the cursor and player + the color values for each part of the player (Head, Body, Arms, and Legs) and the color value for the cursor from a file and it currently uses about 20k of the memory. Is that too much?
vague question.
It's a 2D game, if that's any help.
Still pretty vague. Wouldn't worry until it starts becoming a problem.
[QUOTE=r4nk_;16748090]Still pretty vague. Wouldn't worry until it starts becoming a problem.[/QUOTE] I am loading 4 32x32 images and 2 16x16 images and a shit ton of variables, if that helps.
That's not a lot of usage at all
Well, ask yourself how much memory you have... Do YOU think 20k is a lot?
20k isn't much at all. Most of your memory usage is going to be in resources like images/textures/sounds. Variables are going to be insignificant unless you have lots of text or dialog hardcoded into the game.
[QUOTE=PvtCupcakes;16748303]20k isn't much at all. Most of your memory usage is going to be in resources like images/textures/sounds. Variables are going to be insignificant unless you have lots of text or dialog hardcoded into the game.[/QUOTE] The only text I've got hardcoded is directories. But I guess 20k is fine, woo.
I think when you talk to a lot of people in forums and such, you get the idea that any wasted byte of memory is the worst thing in the world. But really as long as you aren't leaking memory out and aren't loading stuff you'll never use, you don't need to worry about memory. I mean most people have at least a gig of ram, so I'd say until you start getting to 512MB it's not a big deal, especially if you are also putting stuff into vram(aka using directx or opengl or something).
I could understand 2D games taking up more memory than 3d ones. In 3d, you can employ a lot of tricks like skinning to make animations take a tiny amount of data. I guess you could still do the whole bones animation thing with 2d images too, though.
[QUOTE=jivemasta;16748670]I think when you talk to a lot of people in forums and such, you get the idea that any wasted byte of memory is the worst thing in the world. But really as long as you aren't leaking memory out and aren't loading stuff you'll never use, you don't need to worry about memory. I mean most people have at least a gig of ram, so I'd say until you start getting to 512MB it's not a big deal, especially if you are also putting stuff into vram(aka using directx or opengl or something).[/QUOTE] True enough, thanks for the help guys, even if it is a simple question.
Mine uses 44 MB
[QUOTE='Crabman [HUN];35994290']Mine currently use 44 mb :S (2d game)[/QUOTE] I'm curious, how did you find this thread? Because it's 3 years old now Also no. 44 MB is not a lot for a game, at all
more dumbs plz [highlight](User was banned for this post ("Bumping thread" - Swebonny))[/highlight]
Sorry, you need to Log In to post a reply to this thread.