DeanoC blog PS3 memory management

Discussion in 'Console Technology' started by chris1515, Feb 16, 2006.

  1. expletive

    Veteran

    Joined:
    Jun 4, 2005
    Messages:
    3,592
    Likes Received:
    69
    Location:
    Bridgewater, NJ
    Does the 360 not require main memory for this (because of EDRAM) or is it the same for both consoles?
     
  2. Npl

    Npl
    Veteran

    Joined:
    Dec 19, 2004
    Messages:
    1,905
    Likes Received:
    7
    I was talking about the constraint of the amount of Memory, unless Im missing out something this is what its all about in this thread ;)

    Oh and PS3 sports unified Memory too, though you probably want to handle both chunks differenty because of their speed differs.
     
  3. Titanio

    Legend

    Joined:
    Dec 1, 2004
    Messages:
    5,670
    Likes Received:
    51
    Render targets are operated upon on eDram but they have to go back out to main memory ultimately, so in that case it's pretty much the same.

    For framebuffers, the final frame has to be stored out into main memory on 360, but the intermediate stuff is in eDram (the final frame is smaller than the intermediate stuff, well if you're using AA at least).
     
  4. expletive

    Veteran

    Joined:
    Jun 4, 2005
    Messages:
    3,592
    Likes Received:
    69
    Location:
    Bridgewater, NJ
    Thanks, so do you think theres any net difference on footprint in regards to this?
     
  5. Npl

    Npl
    Veteran

    Joined:
    Dec 19, 2004
    Messages:
    1,905
    Likes Received:
    7
    With framebuffers exceeding the EDRam size - no. They need to placed in Mainram also with the Tiling effectively beeing a cache.
     
  6. dukmahsik

    Banned

    Joined:
    May 19, 2005
    Messages:
    994
    Likes Received:
    9
    i have no idea how that is related to the question I asked
     
  7. pipo

    Veteran

    Joined:
    Jun 8, 2005
    Messages:
    2,628
    Likes Received:
    30
    I think he was responding to blakjedi (who thought the 10 MB scratchpad could make a difference)... :)
     
  8. Shifty Geezer

    Shifty Geezer uber-Troll!
    Moderator Legend

    Joined:
    Dec 7, 2004
    Messages:
    44,106
    Likes Received:
    16,898
    Location:
    Under my bridge
    And which system is regarded as having the best visuals? :p

    Regards eDRAM, I dunno if that can be counted as more space any more than chip caches/LS can. It's working space. If the whole render buffer fits, I guess it saves you 10 Mb of backbuffer space. (Edit : removed misinformation following ERP's correction :p). Either way, 10 MBs isn't much to get excited about (less than two percent), and we dunno how much difference in OS resources are gobbled up either. Could be XB360 gains 30 Mb over PS3 in not having some OS features for example.
     
    #28 Shifty Geezer, Feb 16, 2006
    Last edited by a moderator: Feb 16, 2006
  9. ERP

    ERP
    Veteran

    Joined:
    Feb 11, 2002
    Messages:
    3,669
    Likes Received:
    49
    Location:
    Redmond, WA
    Err no you still don't have a backbuffer in main ram even with tiling. Just a post AA front buffer.
     
  10. Shifty Geezer

    Shifty Geezer uber-Troll!
    Moderator Legend

    Joined:
    Dec 7, 2004
    Messages:
    44,106
    Likes Received:
    16,898
    Location:
    Under my bridge
    Actually that's true and I ought to corrct my post. Output from tiling is post transformation. It builds the front buffer in chunks, without needing to store backbuffer, though I imagine there'll be some some data stored such as pre-pass Z buffer, no?
     
  11. expletive

    Veteran

    Joined:
    Jun 4, 2005
    Messages:
    3,592
    Likes Received:
    69
    Location:
    Bridgewater, NJ
    What are your thoughts on the memory footprint as it relates to Dean's comments on "all these lovely HDR AA framebuffers and render targets." ? Does the EDRAM change it between PS3 and 360 or will they still be similar?
     
  12. ERP

    ERP
    Veteran

    Joined:
    Feb 11, 2002
    Messages:
    3,669
    Likes Received:
    49
    Location:
    Redmond, WA

    What Deano is refering to is a perenial game dev problem, rather than not enough memory...You could put 5GB's in there and devs would still run out.

    The problem is just getting much harder to manage with team sizes getting larger, back in the "good old days" senior people who understood what things cost outnumbered the number of "young guys" who didn't. Wiith larger team sizes things tend to skew the other way.

    On a PS2 for example because of template expansion calling push_back on an STL vector generates about 1K of code inline. On a PS2 this is a very bad thing, but it looks like a simple statement in C++, unless you've actually looked at the assembly language generated you would have no idea.

    A lot of what's taught as good programming practices in the real world are extremly poor practice on systems like PS2/PS3/X360.
     
  13. eSa

    eSa
    Newcomer

    Joined:
    Jun 24, 2002
    Messages:
    121
    Likes Received:
    1
    Just a "me too" post

    He is right on a money here , so to speak. Most of the kids starting CompSci now dont get hardly any exposure with memory management. You can get Masters degree (with very good grades!) in CompSci and not understand even a simple indirect addressing at asm level.
     
  14. Shifty Geezer

    Shifty Geezer uber-Troll!
    Moderator Legend

    Joined:
    Dec 7, 2004
    Messages:
    44,106
    Likes Received:
    16,898
    Location:
    Under my bridge
    Almost all CompSci is geared towards 'general' computing (mainframe, network, PC) as that's where 99% of the jobs are. Does anywhere teach for console development? I imagine most seasoned devs cut their teeth on the home-brew sector where coding could be on the metal and all aspects considered. Without that same open low-level hacking on limited hardware being generally available, those who learn game development do so through DirectX and OpenGL from PCs. Without anywhere to learn, how can this ever be fixed?

    MS, Sony and Nintendo should open their own academies for teaching low-level console programming!
     
  15. Npl

    Npl
    Veteran

    Joined:
    Dec 19, 2004
    Messages:
    1,905
    Likes Received:
    7
    Ok, I just read up on the tiling on Xenos. Seems instead you`d need to spend some Memory for keeping the Objects alive until the GPU went through them 3-5 times.

    @dukmahsik: Thought you were expecting an answer if the situation is different for the X360
     
  16. DerrtyENT

    Newcomer

    Joined:
    Jul 25, 2005
    Messages:
    14
    Likes Received:
    0
    Location:
    Miami, FL
    So wait, can PS3's cpu and gpu access the total 512mb of RAM or is 256 dedicated to each?
     
  17. Carl B

    Carl B Friends call me xbd
    Legend

    Joined:
    Feb 20, 2005
    Messages:
    6,266
    Likes Received:
    63

    Shifty, I know this is one of the most ridiculous things you'll ever have been asked on a forum, but there are certain individuals back on PSINext who are quoting your 64MB estimate for the PS3 OS and saying you 'let it slip.' Anyway the source of this confusion seems to be a thread on GAF that quotes you as a dev who broke his NDA. The words of myself and others as to your non-developing livlihood seems not to be good enough to squelch the embers of these rumors. SO, for the good of rumor-squashing everywhere can I get you to post here that you're not a dev under NDA? ;)

    I know, I know...

    BUT, hey it speaks to the quality of your posts that you were mistaken as such, am I right? :)
     
    #37 Carl B, Feb 16, 2006
    Last edited by a moderator: Feb 16, 2006
  18. pcostabel

    Newcomer

    Joined:
    Jul 24, 2002
    Messages:
    129
    Likes Received:
    0
    Location:
    Culver City, CA
    You cannot overwrite the front buffer while it is being displayed. If you use tile rendering, you need a backbuffer in main memory.
     
  19. drpepper

    Regular

    Joined:
    Oct 9, 2005
    Messages:
    656
    Likes Received:
    6
    Location:
    Nation's Capital
    I think the education system is content on just teaching on how to get a program up and running rather than managing the program well. The problem is (and this is from my experience in Univeristy here in Ottawa Canada, I odn't know what it's like elsewhere) is that there is little time to teach everything so memory managment is just glossed over. Despite it, IMHO, being the most important aspect of programming. Your program will suck if there's memory leaks everywhere no matter how well it does its job.

    What they should have done here, at Carleton University, is dedicate an entire course on memory managment and theory. After first year there were still students who didn't know the difference between "pass by reference" and "pass by copying". Bah! Now I know why I switched programs.

    People didn't even know what a heap or stack was...
     
  20. Synergy34

    Regular

    Joined:
    Jul 26, 2005
    Messages:
    323
    Likes Received:
    4
    OMG, I actually almost posted a joke when this thread popped up about how long before internet forums twisted around Deano comments, I never though I would have had to throw Shifty's name in the ring as well. lol

    So should we expect an exclusive interview about the firing of Shifty tomorrow :p
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...