Monday, January 10, 2011

How the PS3 can do so much with so little RAM and VRAM?

If you look at the hardware specs of the PS3 (in Wikipedia, for example) you will notice that the system have 256MB RAM and 256MB VRAM. What is going on here? Is the processor or is it something more that I'm missing? For me is way too little compared with good looking games need in PCs, for example.

From gaming Ither
  • Part of it is that the operating system consumes much more resources on a PC than on a PS3. Just booting into Windows 7 is going to use several hundred MB of RAM. So if a PC game requires 512MB minimum, half of that probably isn't even actually available to the game. PS3's OS will have a significantly smaller footprint.

    Edit: According to this source, the PS3 OS's memory footprint was 120MB at launch, but firmware updates have trimmed it down to 50MB. XBox 360 OS, by comparison, uses 32MB. According to this source, Windows 7 will use at least 220MB, and Windows Vista 300MB, at a bare minimum. But in the real world it will use more because you will have more programs installed and possibly running.

    thethinman : I also believe last last SPE is reserved for OS, good side note Kip. Do you have a link to any details on the ps3 OS? It would buff your answer.
    Kip : @thethinman: added one
    Jeff Atwood : any PC is going to have 2GB minimum these days (usually 4GB). Heck even at 1GB a game would have 804 MB free by your calculations.
    From Kip
  • I don't have the rep required to comment, but I want to point out what I believe to be a falsehood in thethinman's answer. The Wikipedia article he linked to on SPEs states:

    With the current generation of the Cell, each SPE contains a 256 KiB embedded SRAM for instruction and data, called "Local Storage" (not to be mistaken for "Local Memory" in Sony's documents that refer to the VRAM) which is visible to the PPE and can be addressed directly by software. Each SPE can support up to 4 GiB of local store memory.

    (Emphasis added.) The wording is a bit confusing, but I think this means that each SPE in the PS3 only has 256 KB of memory, although 4 GB could be supported.

    At any rate, I can't imagine a device that retails for $300 having 32GB of general-purpose RAM but only 256MB of VRAM. That being the case, the reason the PS3 can do what it can with so little RAM is as other posters have said... low memory usage by the OS and a high level of optimization by developers.

    Mechko : might also add that the largest part of ram in PC games is used for buffering textures, but a lot of that is irrelevant because of streaming from blu-ray discs... I think
    thethinman : Maybe you're right, can you investigate more? Post edits of what you find then I'll take my answer down if it's really wrong. The more I look into it, saying that the small OS is what does it seems to make sense.
    thethinman : Reword your answer to explain it differently (like an explanation instead of an answer correction), I'm taking mine down now that I've looked into it more.
    thethinman : @Mitch: my answer's down, floor's open for you to sum everything up (Ither's looking to you for an answer now).
  • As requested, I've converted my comment to an answer, and added a few more details:

    More with less, but still less
    An important thing to note is that consoles do relatively more (graphics-wise) with less (hardware-wise) than PCs due to lighter OSes and (usually) thorough optimization by game devs, but in the end gaming PCs have much more to work with than consoles do, so they do produce much better results than consoles.

    Low-end PCs are still better than consoles
    Even if you were to define "Gaming PCs" very broadly as "any PC with a low-to-mid-range graphics card made in the last few years and at least 2GB of RAM" (which means relatively cheap PCs still qualify), such a "Gaming PC" should be able to render games at higher resolutions and with more effects than consoles.

    Consoles take shortcuts
    The first way game developers get around the hardware limitations imposed by consoles is they make the console render the game at a lower resolution, and then upscale the images to fit the TV. For example, consoles run CoD4 at 1024x600 pixels with 2x anti-aliasing, which would be rather pathetic on a PC.

    Here are some lists of actual PS3 game resolutions:
    Beyond 3D forums - this seems to be where the upscaling was first noted and documented
    Even more details from Beyond 3D - this is a more complete list of actual game resolutions/effects

    Furthermore, consoles generally use lower-quality textures than are available in their PC-based versions, since they lack the RAM to load more detailed textures. Here's a good comparison of the textures Dragon Age, and here's a comparison of screen shots in Fallout3, Dead Space, CoD:WAW, and GTA4.

    Ivo Flipse : +1 for more with less
    From Ian

0 comments:

Post a Comment