Game Physics and the PhysX PPU

One of the properties of graphics that made the feature a good fit for a specialized processor inside a PC is the fact that the task is infinitely parallelizable. Hundreds of thousands, and even millions of pixels need to be processed every frame. The more detailed a rendering needs to be, the more parallel the task becomes. The same is true with physics. As with the visual world, the physical world is continuous rather than discrete. The more processing power we have, the more things we can simulate at once, and the more realistically we can approximate the real world.

But as we’ll see, there is more to it than simply parallel compute power.

In the beginning there was collision detection, and it was good. And then came some semblance of gravity. Over the years, more and more objects in the game world have become interactive and affected by the world around it. Now the game physics world has culminated in the ability to bowl for oil drums with floppy dead people.

Fast, efficient, rigid body simulation has been well developed over the past couple years. A rigid body is basically a single unit that does not deform due to physical interaction. Think of two billiard balls slamming into each other: the balls retain their shape. If one were to drop a billiard ball on a beach ball, we would see a much different reaction: the beach ball would contract and expand a great deal. In current games, we would treat the beach ball, and indeed everything else, as a rigid body object.

Any rigid body object can have a number of forces acting on it at a time depending on the complexity of the simulation. Each object also has its own properties that are used to determine how these forces affect the object. This can scale from simple (mass and shape) to complex (like data to describe how shape and mass distribution affect angular velocity) depending on how accurate the developer wants to make things.

Not much interesting happens if a rigid body is sitting on flat ground and not moving with nothing touching it. Interesting things start to happen when either the user interacts with an object, or multiple rigid bodies interact with each other. We can easily see how these interactions could get complex. Think of bowling or billiards. Now think a little more complex. What happens when a rocket hits a brick wall and all the bricks go flying? Currently, games generally use tens to about a hundred rigid body objects in any given scene. This is somewhat limiting when the game calls for large scale effects or destruction.

So, here’s the real question. Why won’t Intel’s vision of multi and many-core processors be good enough to handle what a discrete PPU could handle?

Of course more parallel processing power will help no matter how it comes. But the deeper issue is data movement. The example AGEIA gave us to think about was a huge pile of bricks; when you push down on one brick near the top, forces are transferred to all other bricks in the stack. This may not be difficult on the scale to hundreds, but how about 30000 objects in a stack? How about keeping track of that while handling deformable (soft body) objects, fluids, and all collision detection in the scene?

The was all this needs to be handled is not simply with lots of parallel independent floating point power, but with lots of parallel floating point power connected by huge bandwidth. The fact that some initial Intel dual core chips will have to go off chip and back on to communicate, not as much performance is gained as possible. Certainly more parallelism is better no matter what, but it’s the high bandwidth that clenches the deal.

AGEIA’s background is in switched fabrics and networking hardware. The one of the keys to their chip is in the way PhysX is able to move high volumes of computed data internally. In order to find the forces on a brick in the middle of a stack that’s been kicked, the forces on all the bricks around it need to be updated.

Getting data into and out of the chip as fast as possible is important as well. For now, AGEIA is sticking with GDDR3 in order to benefit from the high volume (and lower costs) generated by the graphics market. It would be possible for the PhysX to benefit from higher bandwidth solutions like XDR, but for now it is important for AGEIA to minimize the cost/benefit ratio in order to succeed. The company philosophy at the outset is to follow what the graphics market does in terms of on card RAM.

We really don’t know a great deal about the intimate details of the architecture, but a light weight parallel floating point with lots of communications is a good start. We’ve had several guesses at how the hardware works that have been confirmed wrong. But to paraphrase Edison, eliminating all incorrect paths leads to the goal.

It does seem obvious that all physical properties of objects can be uploaded to the hardware initially (like a graphics card does with textures and such) and manipulated/updated every time something changes. We’ll be bringing out as many details as we can as soon as we are able.

Index Final Words
Comments Locked

70 Comments

View All Comments

  • GoHack - Sunday, March 13, 2005 - link

    "From lordanubis:
    From GoHack: "as well as in the fields of science and engineering."

    THANK YOU! I can't believe it took until page 3 before someone mentioned this. PPU will be as "game-only" as graphics cards are. ATI's Fire stuff, nVidia's quadro stuff, none of them are meant for playing games despite the fact that they are 3D graphics accelerators.

    Physical simulation demands a lot of processing power, think of all the rivets in a bridge, wind's effect on large buildings, or accurate computer simulations of car crashes. So much interaction of different pieces, each with their own properties.

    I'm not claiming this PPU will turn a workstation into a $1,000,000 Cray but added functionality is always welcomed."

    I'm an engineer who uses FEA (finite element analysis)(ANSYS), as well as CAD (computer aided design)(Solid Works) all the time. Any improvements are more than welcome.
  • lordanubis - Sunday, March 13, 2005 - link

    From GoHack: "as well as in the fields of science and engineering."

    THANK YOU! I can't believe it took until page 3 before someone mentioned this. PPU will be as "game-only" as graphics cards are. ATI's Fire stuff, nVidia's quadro stuff, none of them are meant for playing games despite the fact that they are 3D graphics accelerators.

    Physical simulation demands a lot of processing power, think of all the rivets in a bridge, wind's effect on large buildings, or accurate computer simulations of car crashes. So much interaction of different pieces, each with their own properties.

    I'm not claiming this PPU will turn a workstation into a $1,000,000 Cray but added functionality is always welcomed.
  • archcommus - Sunday, March 13, 2005 - link

    #55, if you buy a high-end video card, even though you only need it for intensive apps, you're still using it for everything, even basic 2D stuff. Plus, the high-end features of it can be used for gaming, rendering, and a number of other things.

    With this, it's JUST gaming. I haven't seen proof of another definite use of it yet.

    A device in your computer that is needed for gaming and nothing else = THUMBS DOWN!
  • GoHack - Sunday, March 13, 2005 - link

    It's not just games that could benefit, but computer animated movies, flight simulators, as well as in the fields of science and engineering.

    Until you see the comparison of a game running with and without a PPU, don't write off.

    When talking about cpu's, wait until you start to see games written in 64 bit, but that's another story.
  • sandorski - Sunday, March 13, 2005 - link

    #18 Yup, this could be the next big thing. It's been awhile since 3D Graphics was introduced revolutionizing Gaming. Though many great advances have occurred and many more ae yet to be realized, Game Physics is becoming Hardware intensive and will only continue to push the limits of Hardware Tech. Not only will this Free up CPU and other Hardware resources, it will greatly increase Physics capabilities of current computers more than (likely) a few new generations of CPUs.

    Bring it on!
  • linkgoron - Sunday, March 13, 2005 - link

    #53 a 6800ultra(or any high-end/midrange card) is almost completly usless to most people. Your friends and people here don't see it, but an intel "extreme" is enough for most people.
  • linkgoron - Sunday, March 13, 2005 - link

  • archcommus - Saturday, March 12, 2005 - link

    #52, that is exactly why I said it would only be used for games, which is one of the problems I have with this. A device in your computer that is completely useless unless you're gaming. That can't be said for any other device we have today. They ALL have other uses.
  • Jeff7181 - Saturday, March 12, 2005 - link

    #50... this isn't a CPU... it's a PPU... it's a processor dedicated to calculating physics. It's specifically designed for that, so you shouldn't expect it to do anything else very well at all. That's what allows it to perform so well with physics, it's design is VERY specific... that's why it's so efficient at what it's intended to do.
  • DerekWilson - Saturday, March 12, 2005 - link

    At the outset, using the PPU for something other than game physics won't be feasible. As far as we know, they are currently only making the hardware accessible through software physics SDK(s).

    Without a lower level direct hardware API or a straight assembly interface, nothing other the NovodeX functionality can be accelerated.

    They should be cautious in letting out enough details to program straight to the metal (as others could copy them), and generating something as complex as an API at a low enough level for this thing to be more general would be very difficult.

Log in

Don't have an account? Sign up now