• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

NVIDIA Frees PhysX Source Code

Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
Are you being ignorant on purpose? Charlie from semiaccurate is a sensationalist writer and the source that he's basing his "article" on has already been explained and debunked. Did you even read jabbadap's links?

Perhaps I'd have to link to one of them again: http://www.codercorner.com/blog/?p=1129

It's written by one of the creators of physX, and everything is explained, but I'm sure you'd rather believe charlie, since it fits your "it must be a conspiracy" view.

Here is an excerpt from the end of the article:

there was no crippling. The old version is just that: old. The code I wrote 10 years ago, as fast as it appeared to be at the time, is not a match for the code I write today. Opcode 2 (which will be included in PhysX 3.4) is several times faster than Opcode 1.3, even though that collision library is famous for its performance. It’s the same for PhysX. PhysX 2 was faster than NovodeX/PhysX 1. PhysX 3 is faster than PhysX 2. We learn new tricks. We find new ideas. We simply get more time to try more options and select the best one.

As the guy in the article says, PhysX3 is so fast that it changed his mind about the whole GPU Physics thing. Does that sound like we’re trying to promote GPU Physics by crippling PhysX3? Of course not. And in the same way we did not try to promote Ageia Physics by crippling PhysX2. We were and we are a proud bunch of engineers who love to make things go fast - software or hardware.

Anyway, physx 2.x is gone and physx 3.x doesn't have any of the inherent deficiencies of the old code and is much faster. Isn't that odd? nvidia is crippling CPU physx by making it faster. Now that's something.

I'd be happy to see wider adoption of it.

http://physxinfo.com/index.php?p=gam&f=all
 
Last edited:
Joined
Aug 30, 2006
Messages
7,197 (1.12/day)
System Name ICE-QUAD // ICE-CRUNCH
Processor Q6600 // 2x Xeon 5472
Memory 2GB DDR // 8GB FB-DIMM
Video Card(s) HD3850-AGP // FireGL 3400
Display(s) 2 x Samsung 204Ts = 3200x1200
Audio Device(s) Audigy 2
Software Windows Server 2003 R2 as a Workstation now migrated to W10 with regrets.
For gaming SSE/SSE2 is pretty good for accelerated math. For scientific research, it is hopeless. Because of speed? No, because you need higher FP accuracy that SSE doesnt have.

The x87 FPU was 80-bit precision. Actually, that's only 63 bit precision, with exponent and sign. But it still had all sorts of problems/bugs.

SSE was 32-bit with some 64-bit internal calcs but not consistent in what and how, so reversing the order of a calculation could give different results. The SSE2 was better with its consistently 64-bit architecture. That is still a far cry away from 80-bit or 128-bit double precision. For gaming graphics, 64-bit is more than enough. For calculating interest-rate options, doing experimental science, calculating pi, or doing "critical" calculations (example http://en.wikipedia.org/wiki/Cluster_(spacecraft), then you'd better look for a better FP unit.

I remember looking at the Ageia/PhysX board about 10 years ago for Credit Derivative calculations. It was interesting at the time for its speed, price, and also to develop semi-proprietary hardware/software combo that wouldn't be easily copied within the target client. We didn't go with it because while it was fast the FP wasn't accurate enough. Remember Physics Modelling (millions of artifacts doing approximately the right thing) is different from complex computation (tens, hundreds or thousands of calculations requiring absolute accuracy).
 
Joined
Oct 2, 2004
Messages
13,791 (1.93/day)
For entertainment purposes we DON'T need lab grade calculations for physics. At least not with current hardware...
 
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
While full open sourcing of the PhysX code for CPU and GPU is really what we want, this move might finally be just enough to make it the de facto standard eventually.

How so? By developers studying the code, an open source API similar in concept to OpenGL could be written for both CPU and GPU (CUDA or otherwise) that would be useable by everyone. It would then be trivial to bundle it with games that use it.

The PhysX demos I've seen have been fantastic and really show what it can do, so this can't come soon enough.

Haha not even close to the standard. BF4 has no PhysX and it runs WAY better physics and particle effects than literally ANY PhysX game out. Please don't make me laugh.
 

the54thvoid

Intoxicated Moderator
Staff member
Joined
Dec 14, 2009
Messages
12,457 (2.38/day)
Location
Glasgow - home of formal profanity
Processor Ryzen 7800X3D
Motherboard MSI MAG Mortar B650 (wifi)
Cooling be quiet! Dark Rock Pro 4
Memory 32GB Kingston Fury
Video Card(s) Gainward RTX4070ti
Storage Seagate FireCuda 530 M.2 1TB / Samsumg 960 Pro M.2 512Gb
Display(s) LG 32" 165Hz 1440p GSYNC
Case Asus Prime AP201
Audio Device(s) On Board
Power Supply be quiet! Pure POwer M12 850w Gold (ATX3.0)
Software W10
Haha not even close to the standard. BF4 has no PhysX and it runs WAY better physics and particle effects than literally ANY PhysX game out. Please don't make me laugh.

Scripted destruction is not the same as physx. In BF4 the destruction is predefined, despite how nice it is. The ragdoll effects are also unrealistic, I've seen many a body bounce high into the sky.
Physx is far more competent with particle interaction but regardless of that, its still very limited.
Only a full involvement of Devs would let physx make more of an impact but that won't happen.
Physx is a gimmick, far less useful per se, than AMD's mantle. Both are proprietary and both have had their day now. DX12 and CPU physics will replace them both, probably more pragmatically.
 
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
Scripted destruction is not the same as physx. In BF4 the destruction is predefined, despite how nice it is. The ragdoll effects are also unrealistic, I've seen many a body bounce high into the sky.
Physx is far more competent with particle interaction but regardless of that, its still very limited.
Only a full involvement of Devs would let physx make more of an impact but that won't happen.
Physx is a gimmick, far less useful per se, than AMD's mantle. Both are proprietary and both have had their day now. DX12 and CPU physics will replace them both, probably more pragmatically.

I have seen bodies go ape sh*t in every game I have played. And what destruction in PhysX games are you talking about? Most of the time it just makes popcorn appear everywhere you shoot (Borderlands, Metro, etc). Meanwhile particle effects from explosions in BF4 are jaw-droppingly beautiful. Or heck look at the particles in InFamous Second son!

 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
Haha not even close to the standard. BF4 has no PhysX and it runs WAY better physics and particle effects than literally ANY PhysX game out. Please don't make me laugh.

I have seen bodies go ape sh*t in every game I have played. And what destruction in PhysX games are you talking about? Most of the time it just makes popcorn appear everywhere you shoot (Borderlands, Metro, etc). Meanwhile particle effects from explosions in BF4 are jaw-droppingly beautiful. Or heck look at the particles in InFamous Second son!

Are you sure there are no scripted physics effects in BF4 and inF:SS? Obviously there are some dynamic physics, which are mostly used for simpler effects, but what about more complex effects? Are those dynamic too?

Scripted effects, no matter how impressive, don't really mean anything.

I know the skyscraper in BF4 is fully scripted; no dynamic physics going on. Not sure about the rest.

Dynamic physics require much more processing power and are harder to implement, that's why most developers usually go for the scripted route for more complex effects.

Batman: arkham games have some of the best dynamic physics effects out there.

It all comes down to the developers of a game to properly utilize a physics engine. If a game's dynamic physics effects are lacking or bad, doesn't mean the engine itself is bad.
 
Last edited:
Joined
Mar 9, 2012
Messages
213 (0.05/day)
System Name "Da Krawnik Six Hunnit"
Processor Intel i5 2500K @ 4.6GHz
Motherboard ASUS P8P67 EVO (B3)
Cooling H100i w/2x Bitfenix Spectre Pros + Bitfenix Spectre Pro Blue LED 1x 200mm + 1x 120mm
Memory Patriot Intel Extreme Masters Limited Edition 8GB (2x4GB) 1600MHz
Video Card(s) MSI GTX 970 @ 1491MHz (Actual Boost) / 7.6GHz
Storage Samsung 840 EVO 250GB + 2x WD Green 2TB + 1x WD Green 1TB
Display(s) BenQ XL2430T 144Hz
Case Corsair 600T w/full custom 1/2" acrylic side panel
Audio Device(s) Creative X-Fi Titanium Fatal1ty Pro
Power Supply Coolermaster Silent Pro 850w
Mouse Roccat Kone XTD (laser)
Keyboard Corsair K65 RGB
Software Windows 10 Pro 64-bit
Benchmark Scores Couldn't care less about benchmark scores.
This is great news. PhysX is damn good when implemented correctly, so hopefully this does boost its usage.
 
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
Are you sure there are no scripted physics effects in BF4 and inF:SS? Obviously there are some dynamic physics, which are mostly used for simpler effects, but what about more complex effects? Are those dynamic too?

Scripted effects, no matter how impressive, don't really mean anything.

I know the skyscraper in BF4 is fully scripted; no dynamic physics going on. Not sure about the rest.

Dynamic physics require much more processing power and are harder to implement, that's why most developers usually go for the scripted route for more complex effects.

Batman: arkham games have some of the best dynamic physics effects out there.

It all comes down to the developers of a game to properly utilize a physics engine. If a game's dynamic physics effects are lacking or bad, doesn't mean the engine itself is bad.

There are both scripted and non-scripted. I am referring to the non-scripted ones. InFamous has honestly the best particle effects I have ever seen honestly (On PC or not).
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
Honest to god, give me an example of a PhysX game that does things others don't do.

Honest to odin (or was it zues), it's not about doing things that others don't. All top physics engines, be it havok, physx (CPU), etc. can do pretty much the same things and produce the same effects. As I mentioned, it comes down to the developers to properly utilize an engine.

There isn't much difference on the CPU side.

By particles in infamous, do you mean the particles produced by the protagonist when he uses his powers? How do you know they are not scripted? If they are not, there is no reason they cannot be done with any other CPU physics engine.

Here you can find a series of tests performed with physx and bullet. Publishing havok's test results is forbidden (how curious). The author talks about havok in the conclusion page.

http://physxinfo.com/news/11297/the-evolution-of-physx-sdk-performance-wise/

So what about GPU physx? When the amount of the effects that are going to be used on-screen are too much for the CPU to handle, developers use physx's GPU-accelerated modules. It's not that CPU physx cannot run those effects, it can, but it's simply not possible to run such heavy effects on the CPU and have a good performance. The FPS will tank to single digits.

You might think the GPU physics effects in say batman arkham asylum or city aren't better than infamous, but remember that they are ALL dynamic. No scripted effects here.

This is from arkham asylum. Jump to 1:51.


When crane is moving his hand through those rigid bodies, every single collision is dynamic and calculated, and there are a huge number of them. This just cannot be done with a good FPS on CPU, no matter the engine.

I remember running this game with GPU effects on, and this scene brought even my 8800 GTS to a crawl.

If you have a geforce, you can download the dedicated physx benchmark fluidmark and test its performance for yourself. You can also use it if you don't have a geforce, but only CPU tests will run, obviously.
 
Last edited:
Joined
Apr 15, 2013
Messages
1,261 (0.31/day)
System Name Some computer stuff
Processor Mostly Intel or AMD
Motherboard ATX or mATX
Cooling Bong Cooler
Memory DDR2-4
Video Card(s) A few
Storage Plenty Platters or SSDs or USBs
Display(s) Samsung 23"
Case 5 on the floor
Audio Device(s) There's one for my M7 Gene, Oh I have 3-4 PCI 5.1 ones.Sabrent! lol
Power Supply 750-1000W
Mouse cheap
Keyboard Used ps2 from garage sales
Software Yeah
Benchmark Scores http://hwbot.org/user/schmuckley/#Hardware_Library http://valid.canardpc.com/rbjpbg
This is a good thing!
..after..6-7 years is it? :rolleyes:
 
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
Honest to odin (or was it zues), it's not about doing things that others don't. All top physics engines, be it havok, physx (CPU), etc. can do pretty much the same things and produce the same effects. As I mentioned, it comes down to the developers to properly utilize an engine.

There isn't much difference on the CPU side.

By particles in infamous, do you mean the particles produced by the protagonist when he uses his powers? How do you know they are not scripted? If they are not, there is no reason they cannot be done with any other CPU physics engine.

I mean they react to wind and such so they are not pre-baked. Yes they could be done with PhysX, however it is not the standard and so there is no reason to use it over more established brands. In fact PhysX seems to be incredibly inefficient so it offers no advantage.
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
I mean they react to wind and such so they are not pre-baked. Yes they could be done with PhysX, however it is not the standard and so there is no reason to use it over more established brands. In fact PhysX seems to be incredibly inefficient so it offers no advantage.
What does standard mean? There IS no standard. There are only brands. Are you against having competition? Toyota sells more cars than anybody else, so I guess we should stop buying other brands, right? Windows is the most used PC OS; does that mean linux, OS X, etc. should just cease to exist?

Did you even care to read all those links provided? Guess not. Physx is just as fast or faster than other physics engines in the CPU mode, as it's been shown again and again. Are you ignoring the provided links on purpose?

Just to clarify; CPU physX does NOT require a geforce card to be present. It only runs on the CPU, so it's hardware agnostic.

Well, physx is here to stay. It's even unreal engines' default, built-in physics engine.

Surely those guys at epic are insane for choosing such an inefficient engine. /s
 
Last edited:
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
What does standard mean? There IS no standard. There are only brands. Are you against having competition? Toyota sells more cars than anybody else, so I guess we should stop buying other brands, right? Windows is the most used PC OS; does that mean linux, OS X, etc. should just cease to exist?

Did you even care to read all those links provided? Guess not. Physx is just as fast or faster than other physics engines in the CPU mode, as it's been shown again and again. Are you ignoring the provided links on purpose?

Just to clarify; CPU physX does NOT require a geforce card to be present. It only runs on the CPU, so it's hardware agnostic.

Well, physx is here to stay. It's even unreal engines' default, built-in physics engine.

Surely those guys at epic are insane for choosing such an inefficient engine. /s
Havoc is far more prevalent, so don't play stupid and pretend you didn't know what I meant. As for cpu vs gpu, GPU physics is the future anyways.
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
Havoc is far more prevalent, so don't play stupid and pretend you didn't know what I meant. As for cpu vs gpu, GPU physics is the future anyways.

No, I didn't know what you meant because it made no sense. Something being prevalent doesn't mean it's an standard and that other solutions should just die. Competition is good for the market.

Yes, GPU physics is probably the way of the future. It's just taking too long.

AFAIK, so far physx is the only physics engine with an optional GPU acceleration ability, and since it's locked to nvidia GPUs, it will not become widely supported.

Either nvidia should port it to OpenCL and/or DirectCompute, or havok come up with a universal GPU-accelerated solution, which will probably force nvidia's hand too.
 
Last edited:
Joined
Aug 30, 2006
Messages
7,197 (1.12/day)
System Name ICE-QUAD // ICE-CRUNCH
Processor Q6600 // 2x Xeon 5472
Memory 2GB DDR // 8GB FB-DIMM
Video Card(s) HD3850-AGP // FireGL 3400
Display(s) 2 x Samsung 204Ts = 3200x1200
Audio Device(s) Audigy 2
Software Windows Server 2003 R2 as a Workstation now migrated to W10 with regrets.
I've reviewed the yt links people posted. PhysX hasn't changed, or how it is being used has't changed, in 10 years... it is just graffiti that is sprayed over the architecture of the game. The underlying structure has not changed, the gameplay has not changed, it is just (optional) candy. And that is the problem... the game engine and gameplay has to work 100% with out it... so the developers are not thinking out of the box how to use it in an integrated way.
 
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
What does standard mean? There IS no standard. There are only brands. Are you against having competition? Toyota sells more cars than anybody else, so I guess we should stop buying other brands, right? Windows is the most used PC OS; does that mean linux, OS X, etc. should just cease to exist?

Did you even care to read all those links provided? Guess not. Physx is just as fast or faster than other physics engines in the CPU mode, as it's been shown again and again. Are you ignoring the provided links on purpose?

Just to clarify; CPU physX does NOT require a geforce card to be present. It only runs on the CPU, so it's hardware agnostic.

Well, physx is here to stay. It's even unreal engines' default, built-in physics engine.

Surely those guys at epic are insane for choosing such an inefficient engine. /s
No one is saying that competition should die. I am saying PhysX isn't even competition.
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
No one is saying that competition should die. I am saying PhysX isn't even competition.
How is it not a competition? It is a CPU physics engine, just like havok, bullet, ODE, etc. and is just as fast, at least the 3.x branch is. The only difference is that physx has an optional GPU module that no one is forced to use.

For some reason you're fixated on havok as if only it has the right to exist. There are even some game engines that use in-house physics, like cryengine and frostbite and do not bother with havok.

I've reviewed the yt links people posted. PhysX hasn't changed, or how it is being used has't changed, in 10 years... it is just graffiti that is sprayed over the architecture of the game. The underlying structure has not changed, the gameplay has not changed, it is just (optional) candy. And that is the problem... the game engine and gameplay has to work 100% with out it... so the developers are not thinking out of the box how to use it in an integrated way.

If you mean GPU accelerated effects, yes. It's not logical to implement those effects in the gameplay, if they're only limited to geforce cards. That would break the gameplay on non-geforce cards.

That would not change until nvidia opens GPU physx and allows it to run on non-nvidia cards, but they seem to be unwilling, unfortunately.

It wouldn't hurt if havok made an open GPU module and kicked nvidia's rear.
 
Last edited:
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
How is it not a competition? It is a CPU physics engine, just like havok, bullet, ODE, etc. and is just as fast, at least the 3.x branch is. The only difference is that physx has an optional GPU module that no one is forced to use.

Physics engines besides PhysX have survived mostly on their merits. Meanwhile PhysX has only ever been used because of it being forced on developers in the deals Nvidia makes with some of them.

It's just like how 8% of internet browsers used are Internet Explorer. If it wasn't for MS shoehorning in IE support on every one of their devices NO ONE WOULD USE IT. That is because other browsers like Chrome and Firefox are flat out superior.



P.S. I only mentioned Havok because that is the one that I remembered off the top of my head. There are plenty of Physics engines out there worth using. However PhysX is not one of them unless Nvidia forces you.
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
Physics engines besides PhysX have survived mostly on their merits. Meanwhile PhysX has only ever been used because of it being forced on developers in the deals Nvidia makes with some of them.

It's just like how 8% of internet browsers used are Internet Explorer. If it wasn't for MS shoehorning in IE support on every one of their devices NO ONE WOULD USE IT. That is because other browsers like Chrome and Firefox are flat out superior.

P.S. I only mentioned Havok because that is the one that I remembered off the top of my head. There are plenty of Physics engines out there worth using. However PhysX is not one of them unless Nvidia forces you.

Wow, you couldn't be more cynical. You really think every single game that uses physx was forced by nvidia? All 581 of them, which only 46 are GPU accelrated? Wow. No, really, WOOWW. So I suppose all those small, rather insignificant games that used physx were also forced by nvidia, and not because using physx in a windows game is free?

Now I see that you're trolling. There was no point in replying to you at all, thinking you're a reasonable and knowledgeable person.

You also think IE's market share is 8%?! WOOWW. Even statcounter says it's higher than that.

Some people just can't be helped.
 
Last edited:
Joined
Feb 12, 2015
Messages
1,104 (0.33/day)
Wow, you couldn't be more cynical. You really think every single game that uses physx was forced by nvidia? All 581 of them, which only 46 are GPU accelrated? Wow. No, really, WOOWW. So I suppose all those small, rather insignificant games that used physx were also forced by nvidia, and not because using physx in a windows game is free?

Now I see that you're trolling. There was no point in replying to you at all, thinking you're a reasonable and knowledgeable person.

You also think IE's market share is 8%?! WOOWW. Even statcounter says it's higher than that.

Some people just can't be helped.
8% is what I just read from the new 2015 numbers (Feel free to correct me if I am wrong).

http://www.w3schools.com/browsers/browsers_stats.asp

Just like IE, PhysX is being phased out because it is simply inferior to its competition's products. If you want to talk about a game, how about you mention a specific one.
 
Joined
Mar 9, 2012
Messages
98 (0.02/day)
Processor Core 2 Quad Q9550 @ 3.7 GHz
Motherboard Gigabyte GA-P35-S3L
Memory 8 GB DDR2-870
Video Card(s) Geforce GTX 1060 6GB
8% is what I just read from the new 2015 numbers (Feel free to correct me if I am wrong).

http://www.w3schools.com/browsers/browsers_stats.asp

Just like IE, PhysX is being phased out because it is simply inferior to its competition's products. If you want to talk about a game, how about you mention a specific one.
http://www.netmarketshare.com/
http://gs.statcounter.com/

Really? So nvidia is phasing out physx by introducing newer versions?! Didn't know people phased out software by continuing its development. Countless tests done, showing physx is just as fast, and I posted links too, and yet you repeat the same thing without bothering to read any of them.

I don't have to mention a specific one. You said if a game, any game, uses physx, then nvidia forced them to. here:

http://www.physxinfo.com/index.php?p=gam&f=all

The list of all 581 physx games. Show everyone that ALL of them were forced by nvidia. MAANN.
 
Joined
Mar 10, 2014
Messages
1,793 (0.48/day)
Just like IE, PhysX is being phased out because it is simply inferior to its competition's products. If you want to talk about a game, how about you mention a specific one.

Hardly, as long as physx is bundled with engines like ue4 and unity 5, it will have bright future.

If you mean gpu accelerated then that would be the case(nvidia should really open that up, getting universal gpu path for physics would make games more realistic. Now physics are used merely for eye candy, not really physics), but this cpu path has it's future.
 
Top