Hardware accelerated physics?

New releases and general discussions.

Post » Tue Jun 09, 2009 4:18 pm

I doubt this would be a possibility for 1.0, but perhaps for the 2.0 rewrite? I was watching videos of hardware accelerated physics demos pushing like 50,000 or more objects around, which would be awesome for fluid simulations or such. Thoughts?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Jun 09, 2009 5:23 pm

It would be really cool, but AFAIK it's PhysX powered which is only supported by the nVidia GeForce 8 series and up, which generally are high end, expensive gamer cards. That makes it a difficult thing to implement - simulating 50,000 objects on the CPU for a user without the right hardware would be slow as toffee.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Jun 09, 2009 5:55 pm

I didn't even know this was possible. Is it on high end ATI cards too?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Jun 09, 2009 6:26 pm

No, nVidia bought out PhysX: http://www.nvidia.com/object/physx_new.html "Only available for the PC on NVIDIA GeForce GPUs, NVIDIA PhysX technology delivers ..."

ATI might come up with their own engine, which would only further complicate the problem. Personally I'd rather see a multi-core enabled Box2D, since soon enough everyone's gonna have a whole bunch of cores on their CPU.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Jun 09, 2009 7:23 pm

Ive seen this when researching about SPH fluids.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Jun 09, 2009 10:14 pm

Probably no use then sadly.. a multi core box2d would be better certainly.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Wed Jun 10, 2009 6:49 pm

[quote="Rich":144ntncm]I didn't even know this was possible. Is it on high end ATI cards too?[/quote:144ntncm]
I believe Nvidia will be releasing the specs, and allowing other card manufacturers to use it as well. Also, ATI's high-end cards have GPU accelerated Havoc physics- Valve's physics engine, which is used in alot of games
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Jun 11, 2009 10:54 pm

PhysX seems to have a lot of stability problems in shipped games. I'm sure with time it'll get better, but ATI's response was really nice:

they showed a prototype of Havok implemented in OpenCL.
Now, the kicker is that OpenCL is an open specification, so NVidia and others can and probably will implement drivers for it, then you'd write OpenCL programs once and run them on either a GPU or a multicore CPU, whatever's best in a given configuration.

But we're not there yet. So don't think about it too much :P
Now, if someone implements Box2D in OpenCL...
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Fri Jun 12, 2009 11:33 am

Yeah I think ATI has better solution as it's free ^^ and it should come soon
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Fri Jun 12, 2009 11:36 am

But will any of this work on a large proportion of GPUs? My laptop's onboard GPU is competent for example but I wouldn't expect it to.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests