By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Forums - Sony Discussion - How inFAMOUS: Second Son Used the PS4's Power

Tagged games:

inFAMOUS: Second Son is definitely one of the most visually impressive games available now on a new generation system, and at the Game 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 game.

  • 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 purposes, 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 linear buffers.
  • Most of the 4.5 Gb of RAM actually available were used. You can see the full allocation 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. 

As a wrap-up, Bentley mentioned a few elements we (or at least developers among us, gamers 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. 

More info and pics on the link.

http://www.dualshockers.com/2014/04/02/how-infamous-second-son-used-the-ps4s-8-4-5-gb-of-ram-cpu-and-gpu-compute-to-make-our-jaws-drop/



Around the Network

290MB of render target O.O



Much more important: So it's true, only 4.5 gb is available to developers. 3.5 gb reserved for background tasks sounds like complete overkill to me. Maybe Sony will free up some space later on?



Interesting stuff. This game is pretty impressive visually. A little surprised to read about the I/O struggles but I suppose it's a title that is constantly streaming data.

Not that it matters now but I wonder if a solid state drive would have made this easier or if the problems were more to do with the connectors between the drive and CPU?



Already posted and believe me, the other thread was a mess! It is locked now...



Around the Network
AnthonyW86 said:
Much more important: So it's true, only 4.5 gb is available to developers. 3.5 gb reserved for background tasks sounds like complete overkill to me. Maybe Sony will free up some space later on?

They managed it with the PS3 so I'm guessing the same will be true of the PS4. They've probably just put a massive reserve on to ensure they can add features to the OS if/when they need to. That burned them last gen when they didn't have enough RAM to add cross game chat.



Oh dear. Not again...

But actually, this thread looks more well put-together. So let's see how it goes. I've just finished inFamous today, an excellent game if short, so its nice to see the breakdown!



 

Here lies the dearly departed Nintendomination Thread.

walsufnir said:
Already posted and believe me, the other thread was a mess! It is locked now...

How...? Actually, don't answer that. I probably don't want to know.



Scoobes said:
walsufnir said:
Already posted and believe me, the other thread was a mess! It is locked now...

How...? Actually, don't answer that. I probably don't want to know.


Yeah, you don't want... Actually it was centered around PS4 having "only" 4.5 gb ram which many of us knew before.



Conegamer said:
Oh dear. Not again...

But actually, this thread looks more well put-together. So let's see how it goes. I've just finished inFamous today, an excellent game if short, so its nice to see the breakdown!

If you liked the first game you are gonna love the second one! my favorite game of 7th gen. And off topic: I like your dog.