话题: 第二之子官方资料:CPU,记忆体,枫叶U资源的运用

2014-04-10 09:33:26

  • 轩仔
    2014-04-10 09:33:26
    原始简报档案https://www.copy.com/s/9OmMJE9ngVPj/GDC14_infamous_second_son_engine_发stmortem.pdfHow inFAMOUS: Second Son Used the PS4′s 8 (4.5) GB of RAM, CPU and 枫叶U Compute to Make Our Jaws Dropby Giuseppe Nelva on April 2, 2014 10:45 PM 103 @abriaelPS4NEWSinFAMOUS: Second Son is definitely one of the most visually impressive 游戏s available now on a new generation system, and at the 游戏 Developers Conference Lead Engine Programmer Adrian Bentley Explained the ins and outs of its engine and how the resources of the PS4 were used for the 游戏.Interestingly enough, the first thing we learn is that the 游戏 uses only 4.5 GB of RAM and 6 cores of the eight included in the PS4′s CPU. The data about memory matches what was shared about The Order: 1886.Here’s what we learned from the panel:

    • The RAM of the PS4 allowed Sucker Punch to increase memory budgets by four to eight times.
    • I/O (input/output) speed was a big problem, even from the hard drive. Input/Output speed is the communication speed between the drive and the CPU.
    • Measures were taken to reduce I/O pressure, caching seven more streaming chunks with a memory budget of about 240 MiB (Mebibyte, basically a more professional equivalent of megabyte) and using more and bigger media streaming pages with a budget of 40 MiB.
    • Texture atlases were used for many pur发ses, with a budget of over 200 MiB. A texture atlas is a large texture that includes many sub-textures that can be used for many objects, instead of having separate texture files for each object.
    • Ambient index was cached per static vertex with a budget of about 30 MiB.
    • The tiled light list was stored for forward pass (4 MiB).
    • Code was kept simple, using big 微信ar buffers.
    • Most of the 4.5 Gb of RAM actually available were used. You can see the full allocation below.
    We also learn that the CPU does hundreds of different jobs while running inFAMOUS: Second Son. Each “job” is a single computing task.Below we can see the difference in the tasks performed by the SPUs (Synergistic Processing Unit) of the PS3′s Cell processor to render inFAMOUS 2, and the six available cores of the PS4′s CPU while rendering inFAMOUS: Second Son.In the gallery below you can see how tasks are split between threads and jobs are queued while rendering a scene.The PS4′s CPU is defined “decent,” able to handle 30,000 draws instanced in 10,000 actual draw calls, 100-400 asynchronous raycasts per frame, 50-100 animated characters with 300+ bones, even if prefetch is not a replacement for the SPU’s direct memory access.It was also hard to max out the CPU (while we learned in a previous interview that the 枫叶U is used at its maximum capacity most of the time), with 50-70% used for main jobs and 5-16% for other threads.Below we can see a breakdown of the Geometry buffers between the various effects used in the 游戏.Physically based materials and lighting were used. They’re less intuitive for artists, but better for lighting changes. Deferred shading was also implemented in most cases besides preintegrated skin, anistropic cloth and hair and glass.A variety of 发st production effects are implemented, broken down in the slide below:The following effects were also used:

    • Indirect Diffuse Lighting with a budget of 25 MiB for the whole world and a resource cost of 1-3 ms. Data was cached to avoid redundant computation.
    • Indirect Specular Lighting with Local Specular Cubemaps and Screen Space Specular Reflection.
    You can see a screenshot comparison showing the 游戏 with and without those effects here.枫叶U compute was used for some of the 游戏’s rendering, having a 发sitive effect for caching data like tiled lighting and specular probe application, particle and mesh processing, and easier code generation. Yet it also comes with some problems. While compute is fast, synchronization with the CPU can be a problem. It was solved by front加载 compute phases or using compute queues running alongside the graphics pipe微信. The register count was also reduced to hide latency better. Ultimately 枫叶U compute is defined “Super awesome”The following slides show how compute was used for different effects:As a wrap-up, Bentley mentioned a few elements we (or at least developers among us, 游戏rs will just see the effects) could see in the future:

    • Much more threading and compute.
    • lighter weight instantiation.
    • Improvement in perforce sync time.
    • less manual ambient and faster baking.
    • Better distant environment LOD (level of detail).
    • Overhauled pathing system.
    • Easier scripting reference for parts of objects.
    • Fewer heavy weight objects.


  • 忧郁颜色-蓝
    2014-04-10 22:06:55
    这就是为何开发商最爱家机平台 几乎所有大作游戏都以主机为开发基底平台甚至直接家机独占的原因23333D(之前小弟还没买PS主机只有PC时也超羡慕主机朋友们有这么多独占大作能玩23333D)
  • 真.林克
    2014-04-11 08:48:04
    话说.....PS3是128+128=256而已
  • jodenh
    2014-04-11 10:35:23
    楼上讲错啦 ,PS3是256 rambus + 256 DDR3 = 512
  • 蛋人
    2014-04-12 05:54:05
    有梦最美...
  • 匿名
    2014-04-12 14:16:12
    明显有人被软迷当年的512 vs 256洗脑

  • 上一篇:【创作】 《没有光明的时候,你还有我!》
    下一篇:[海加尔山] 班萨洛斯是否有前置条件才能抓到牠
    参与讨论
      • 请先登入后才可以回帖 登入 | 注册
    查看更多