Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Physics [split from network thread]
02-14-2007, 07:10 AM,
#1
RE: Physics [split from network thread]
Nigo Wrote:are you saying the CPUs are too slow to compute the physic for several cars ?
what about AIs then ? (I heard we have AIs but I don't know how they work :lol: :oops: )
Well, i don't know what's the CPU usage for physics in vDrift (check with a profiler); but i do know of cases where physics is too cpu-hungry.
For example, if you know GPL (Grand Prix Legends, not the license)... the first runnable version took 30 minutes to run a single second of physics. Once it was optimized to run realtime, it was decided to use faked AI physics.
It's just an exageration, but keep in mind it may happen in some way. Take a profiler and do some checks. Remember that we're not talking about simply computing several cars physics, but about computing several cars physics of the last couple tenths of second (due to lag).

Maybe current Vamos physics are simple/optimized enough to run all of that with no problems, i don't know (it probably is), but i can tell that my un-optimized physics in Motorsport do not allow more than 6 cars at once on screen, and most of the problem is physics.
So just keep that in mind; do not assume things before coding all the multiplayer thing Smile

Nigo Wrote:
Quote: if you have your client have updated positions/speeds whenever the server wants, you may easily end up losing control of the car because you're suddenly in a 90º drift, while you expected to be gripping nicely through the corner apex
I don't see the point of receiving anything from the server for it's own car (except in case of a collision of course)
I meant the other cars (of course you have your own data already).
If you only send car chassis data, it may look very weird during the race, and most importantly during replays. RBR (Richard Burns Rally) had a bug in its first release, the front wheels didn't rotate in replays, and it was very noticeable.

If you want to save some bandwidth, the wheels positions (not rotations) could be "guessed" running some simple physics, like a ray-mesh collision detection, if you know the suspension travel. Most of the times it should look right (except on car jumps, which i think you only have at the nordschleife Wink ).
Reply


Messages In This Thread
RE: Physics [split from network thread] - by stenyak - 02-14-2007, 07:10 AM
[No subject] - by thelusiv - 02-14-2007, 06:20 PM
[No subject] - by stenyak - 02-14-2007, 06:57 PM
[No subject] - by thelusiv - 02-15-2007, 05:44 AM
[No subject] - by reece146 - 02-15-2007, 11:17 AM
[No subject] - by stenyak - 02-15-2007, 02:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-18-2007, 02:50 PM
[No subject] - by reece146 - 02-18-2007, 07:00 PM
[No subject] - by thelusiv - 02-18-2007, 09:03 PM
[No subject] - by reece146 - 02-18-2007, 09:41 PM
[No subject] - by thelusiv - 02-19-2007, 03:25 AM
[No subject] - by stenyak - 02-19-2007, 08:01 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-19-2007, 09:36 AM
[No subject] - by Nigo - 02-19-2007, 09:48 AM
[No subject] - by thelusiv - 02-19-2007, 11:02 AM
[No subject] - by rookie1 - 02-19-2007, 11:24 AM
[No subject] - by thelusiv - 02-19-2007, 12:56 PM
[No subject] - by rookie1 - 02-19-2007, 01:11 PM
[No subject] - by reece146 - 02-19-2007, 01:12 PM
[No subject] - by thelusiv - 02-19-2007, 01:42 PM
[No subject] - by stenyak - 02-19-2007, 01:54 PM
[No subject] - by stenyak - 02-19-2007, 02:08 PM
[No subject] - by thelusiv - 02-20-2007, 05:10 AM
[No subject] - by stenyak - 02-20-2007, 06:51 AM
[No subject] - by reece146 - 02-23-2007, 01:09 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-23-2007, 09:10 PM
[No subject] - by stenyak - 02-24-2007, 10:55 AM
[No subject] - by thelusiv - 02-28-2007, 02:25 AM
[No subject] - by stenyak - 02-28-2007, 05:38 AM
[No subject] - by thelusiv - 02-28-2007, 08:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)