Author Topic: Fixed Physics  (Read 2069 times)

6000 hulls
29 lines of code couldn't be THAT bad, could it?
...by your logic RTB would crash your computer as it has over 20000 lines of code

6000 hulls
29 lines of code couldn't be THAT bad, could it?
It depends on what the code is doing.

It depends on what the code is doing.
You're right, IDK what I was thinking.
Imagine if the code was a constant loop getting the position of every vehicle every tick on the server and then updating the vehicle according to the position. That could cause problems with 10+ vehicles...

You're right, IDK what I was thinking.
Imagine if the code was a constant loop getting the position of every vehicle every tick on the server and then updating the vehicle according to the position. That would cause problems with 1 vehicle...
fixed

29 lines of code couldn't be THAT bad, could it?

Code: (server.cs) [Select]
quit();

It's just one line of code, it can't be THAT bad, can it?

wouldn't that tend to slow down the server's performance though at 10 - 20 vehicles?

Raycasts are really, really fast. Only when I had about ~310 raycasts going on literally every frame it started to lag.