Slashdot Log In
Nvidia Physics Engine Almost Complete
Posted by
ScuttleMonkey
on Mon Apr 14, 2008 11:12 AM
from the close-only-counts-in-horseshoes-and-hand-grenades dept.
from the close-only-counts-in-horseshoes-and-hand-grenades dept.
Nvidia has stated that their translation of Ageia's physics engine to CUDA is almost complete. To showcase the capabilities of the new tech Nvidia ran a particle demonstration similar to Intel's Nehalem demo, at ten times the speed. "While Intel's Nehalem demo had 50,000-60,000 particles and ran at 15-20 fps (without a GPU), the particle demo on a GeForce 9800 card resulted in 300 fps. In the very likely event that Nvidia's next-gen parts (G100: GT100/200) will double their shader units, this number could top 600 fps, meaning that Nehalem at 2.53 GHz is lagging 20-40x behind 2006/2007/2008 high-end GPU hardware. However, you can't ignore the fact that Nehalem in fact can run physics."
Related Stories
[+]
Technology: NVIDIA To Buy AGEIA 160 comments
The two companies announced today that NVIDIA will acquire PhysX maker AGEIA; terms were not disclosed. The Daily Tech is one of the few covering the news to go much beyond the press release, mentioning that AMD considered buying AGEIA last November but passed, and that the combination positions NVIDIA to compete with Intel on a second front, beyond the GPU — as Intel purchased AGEIA competitor Havok last September. While NVIDIA talked about supporting the PhysX engine on their GPUs, it's not clear whether AGEIA's hardware-based physics accelerator will play any part in that. AMD declared GPU physics dead last year, but NVIDIA at least presumably begs to differ. The coverage over at PC Perspectives goes into more depth on what the acquisition portends for the future of physics, on the GPU or elsewhere.
[+]
Nvidia CEO "Not Afraid" of CPU-GPU Hybrids 228 comments
J. Dzhugashvili writes "Is Nvidia worried about the advent of both CPUs with graphics processor cores and Larrabee, Intel's future discrete graphics processor? Judging by the tone adopted by Nvidia's CEO during a financial analyst conference yesterday, not quite. Huang believes CPU-GPU hybrids will be no different (and just as slow) as today's integrated graphics chipsets, and he thinks people will still pay for faster Nvidia GPUs. Regarding Larrabee, Huang says Nvidia is going to 'open a can of whoop-ass' on Intel, and that Intel's strategy of reinventing the wheel by ignoring years of graphics architecture R&D is fundamentally flawed. Nvidia also has some new hotness in the pipeline, such as its APX 2500 system-on-a-chip for handhelds and a new platform for VIA processors."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
It's just particles (Score:3, Interesting)
This is just a particle system. Smoke, snow, rain, and maybe water look better, but it apparently has no influence on gameplay.
Re:It's just particles (Score:4, Funny)
Parent
Re:It's just particles (Score:5, Funny)
Parent
Re:It's just particles (Score:5, Funny)
Parent
Spoiler (Score:3, Funny)
Re:It's just particles (Score:5, Funny)
(.)(.)
(')(')
(.)(.)
Much faster
(:)(:)
So fast they're a blur
(|){|)
Parent
Re:It's just particles (Score:5, Funny)
in 2018, the EA CEO will make an official communicate on how the pc market is saturated and in decline, and will stop the franchise.
the modding community will happily mod the first one until 2m1. console users instead will stubbornly buy the new one each year until eternity, inflating console market usage and lolling about their platform superiority.
Parent
Sync between machines with different cards? (Score:2)
Re:Sync between machines with different cards? (Score:5, Informative)
Huh? The local physics computations are only being used for presentation and local extrapolation. The server recomputes the relevant physics anyway, and can re-sync everyone periodically. That's how FPSes work to reduce lag--they do local extrapolation, and the server periodically snaps everyone back in line. It sometimes leads to what John Carmack calls "paradoxes" where locally displayed events get undone, but it works.
So, if some portion of your local physics calculation is purely for local presentation (e.g. game outcome doesn't depend on exactly how dirt particles fly around or boobs bounce, but you want it to look realistic), the server doesn't need to reproduce any of that to model the game correctly. Your screen might look different than someone else's, but in an immaterial way. For the super-soaker example, the server will still compute actual "wetness," possibly with a simplified model that skips computing the goosebumps and most of the dripping water.
--JoeParent
Using how much bandwidth? (Score:3, Informative)
The local physics computations are only being used for presentation and local extrapolation. The server recomputes the relevant physics anyway, and can re-sync everyone periodically.
Using how much bandwidth per particle?
For the super-soaker example, the server will still compute actual "wetness," possibly with a simplified model that skips computing the goosebumps and most of the dripping water.
That's kind of what I meant by "use coarse particles for game logic and finer particles for iCandy."
Re: (Score:2, Funny)
real physics? (Score:3, Interesting)
I recall that in the original Toy Story there is only one place they used "real physics". When the jump rope is thrown off the balcony (for the army men to descend), they used real phys
Re: (Score:3, Interesting)
I recall that in the original Toy Story there is only one place they used "real physics". When the jump rope is thrown off the balcony (for the army men to descend), they used real physics to model it's tangled fall. But thye later sent it was not a good idea to use the real physics. Not only was it harder but it didn't really look right and could not be easily tweaked. So all the rest is pretend physics.
What people perceive a situation to look like and how it would realistically look have drifted a lot. Due partially to the real life rarity of those situations and Hollywood/Video games distortion of it. We all expect shot guns to be massive overkill at medium to short ranges when in reality they don't hit that hard. We expect all explosions to involve flames. We expect bullets to hit with far more kinetic force then they do. We expect a whole lot of things that just don't happen in real life. It doesn't h
Re:real physics? (Score:4, Funny)
What are you talking about? I was just playing this game the other day where I shot a guy in the chest with my 9mm several times. He hardly moved when I shot him, and it took like 20 shots to finally take him down.
Just like real life.
Parent
Re: (Score:3, Informative)
Duke! (Score:5, Funny)
It'll be like 1996 all over again, only from a physics not graphics perspective. That, and there might be a new Duke Nukem game due out within the next 12 years.
I couldn't find anything specific - will nVidia... (Score:5, Interesting)
Re:I couldn't find anything specific - will nVidia (Score:5, Informative)
So, physics should work on Linux, having been ported to CUDA already, and CUDA being cross-platform, but the question is if any Linux games will actually support and/or make use of it.
Parent
Re: (Score:3, Insightful)
Re:I couldn't find anything specific - will nVidia (Score:5, Informative)
Parent
Re: (Score:2)
Re:I couldn't find anything specific - will nVidia (Score:5, Insightful)
The *only* use?? Geez, I'd like to get my hands on the API to write some physics educational/demonstration software. Or just create physically accurate simulations for kicks. We don't *have* to rely on others to write software for us.
Parent
640K RAM is enough for anybody, right? (Score:2, Insightful)
That's okay - somebody else already posted the answer - this thing'll use an established mechanism (CUDA). I don't know what that is, but after this card hits the market, I'll probably start to find out.
Re:I couldn't find anything specific - will nVidia (Score:5, Informative)
Anyone ever tell you that a lot of scientific types use Linux on their workstations? They do.
Parent
Re:I couldn't find anything specific - will nVidia (Score:2)
FIrst you need a Windows version that won't crash. (Score:5, Funny)
Parent
Is particle motion a fair test case? (Score:5, Informative)
When I was getting up to speed on IBM Cell programming, IBM had a programmer's tutorial (excellently written, btw). The example problem they used for their chapter(s?) on code tuning were a particle simulator. It was a wonderful example problem, because it showed how to vectorize a program. But then when we went to vectorize our own algorithm, it didn't fit the Cell's vector programming instructions nearly as cleanly, so in the end we didn't get nearly the performance increase due to vector instructions as did the particle simulator.
So I'm thinking that just even though CUDA can do a good job with particle motion simulations, we shouldn't remotely assume that it's good for particular algorithms for which each of us is responsible.
Re: (Score:2, Interesting)
Actually useful collision detection of say, convex volumes with rotational velocities, with the volumes being stored in a 3D space partition (eg: kd-tree or BSP tree) will likely prove significantly more difficult to parallel
Re:Is particle motion a fair test case? (Score:5, Interesting)
That's exactly why I'm skeptical of CUDA in general. Rendering graphics is one of those "embarrassingly parallel" operations, where for every frame rendered, each triangle, vertex, and pixel is independent of the others. I don't know much about physics processing, but I'm guessing it's the same. Simply throwing say, 4x more hardware at the problem gives you pretty much the ideal 4x speedup. Once you introduce random data dependencies into the problem, though, parallelization is much harder and you don't get the same speedups.
There are a lot of easily-parallelizable problems out there, which is great...but then again, there are a lot of not-so-easily-parallelizable problems out there too. I don't think CUDA would do any better than a general-purpose CPU on the latter class of problems.
Parent
So (Score:3, Funny)
Re:So (Score:5, Informative)
Parent
Experts please explain something (Score:5, Interesting)
It just seems to me that if a graphics card can calculate physics then it would also be able to do pretty much all the same types of calculations that a regular CPU can do, but I am obviously missing a big part of it.
Experts, continue!
Re: (Score:2)
CPU = Jack of all trades, master of none; GPU = the highly trained specialist.
Re: (Score:2)
Re:Experts please explain something (Score:5, Informative)
As a result, the massively parallel hardware on a GPU that exists to render many triangles/pixels/shader programs/etc at once can be exploited to calculate updates for many particles at once. The CPU is at an inherent disadvantage because it is only leveraging a small subset of it's full capabilities.
The CPU is very good at *lots* of different tasks. The GPU is phenomenally good at a very specific set of tasks. Physics just happens to fit within that set.
Parent
Re:Experts please explain something (Score:5, Informative)
Think of a CPU as a big tool box. There's something in there for every task, including a screwdriver that can be used to put screws into things. Then next to it, you have a big cordless 18 volt drill (The GPU). Way easier to drive screws with that than the manual screwdriver in your toolbox. But when you need to drive a nail instead, yeah you could bash it in with your screw gun, but it's easier to go back to your toolbox and find a hammer.
I guess that would make a physics processor the nail gun. Or something...
Parent
Re: (Score:3, Informative)
Applying a complex formula millions of times, each time with a different set of coefficients? -> GPU.
GPUs fail at tasks where lots of synchronization or frequent branching is necessary. Stuff like game logic, for instance, or state machines. Your typical office application is
Re: (Score:3, Informative)
On my Mac Pro, I have 8 3GHz CPU's. Consider that the baseline.
I have 2 8800GT cards to drive the 30" and 2x23" (rotated, one each side of the 30"
Now stream processors aren't quite the same as general purpose processors, but the way they're imp
Re:Experts please explain something (Score:5, Funny)
Parent
Re: (Score:3, Funny)
Why particle systems? (Score:5, Interesting)
Those are the kind of problems that force programmers to use approximations when using a physics engine.
The next step is really abstracting the physics from the development, not having pretty water.
Re:Why particle systems? (Score:5, Interesting)
They should test physics systems with spheres on irregular ground, with uneven (coefficient of kinetic friction), and changing wind.
I always liked to test on the hard cases (see my web site) but, in fact, what game developers and animators want is not realistic physics. The game people want "infinitely destructible environments", where you can blow up anything. And, of course, eye candy. The animation people want physics they can direct, where the starting and ending positions are specified but what happens in the middle might be automated. So most character motion in video games is spliced-together motion capture bits, hand animation, and a bit of physics now and then.
Most game physics engines today cheat on the hard cases, but by now, they usually cheat in ways that don't do something blatantly nonphysical.
My original goal, back in 1996 when I was working on this, was to get to a two-person fighting game with real martial arts. The physics engine we had was good enough, although in the era of 200MHz CPUs, a bit slow. But a control system that can do a judo throw against an uncooperative opponent is still out of reach. Worse, controlling a physically realistic martial arts character through a game pad is just hopeless. Play would be like a typical day at the dojo: "You lost your center. Your left foot should have been further forward when you tried that throw." "Yes, sensi". Work out three times a week for a year, and you get to be halfway decent. As a game, that sucks.
So I created the "ragdoll falling downstairs" cliche as a demo, licensed the technology to a middleware provider, and went on to other things.
Parent
Oh really? (Score:5, Funny)
In fact, I can.
nested particles (Score:2)
but is there such thing as netsted particles?
Full objects, made of "bound particles" (polygons that when constrained to eachother act as an object) but that whole object can be a particle?
Then if destroyed the resultant triagles themselves become particles?
I ask in that I would like to know if a whole seemingly static scene can really be generated/destroyed/interacted with as if everything were particles...
Or is this how things are already done??
It just seems to me that super-particles is
Re: (Score:2)
Real Physics engine goal (Score:5, Funny)
Re: (Score:3, Funny)
What about graphics? (Score:3, Interesting)
Re: (Score:2)
Layne
Re: (Score:3, Informative)
Wow ! That's more than 4 times faster than the human brain can detect. Now if I only knew why a frame rate this high is needed. Anybody?
It's not needed. But it's useful for comparison.
Nehalem only got x frames per second, but nVidia Magic Goodness 9800 Large Numbers GTX got y FPS, where y > x, can show that nVidia MG9600LNGTX > CPU.
Also, presumably this won't be used to run 50,000 particle games at 300fps, but much more complicated simulations (infinitely destructable environments, not line