Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball)
#17

Quote:
Originally Posted by PeppeAC
View Post
It would be interesting to know how this plugin affects the performance of the server (I think it takes a lot of resources) and if it would be possible for SA-MP developers to implement a proper collision engine on client-side, with syncing code on server-side.
Not much RAM, a little bit less than ColAndreas with all collisions initialized (Because of using CollisionObject instead of RigidBody for the San Andreas world)

Also not much CPU because I have limited stepSimulation to be called in a rate instead of being called rapidly.

Well, it depends on your CPU mostly, more powerful CPU, more objects can be simulated at once, however you should also consider RakNet and ackslimit when simulating lots of objects in a specific streamed area, it will send 2RPCs per step simulation (per-player ofcourse)
And about doing it in client-side, well, still you need to put some checks and communication between the server and the client, it won't look pretty that way.

Quote:
Originally Posted by Yashas
View Post
What happens if there is lag?
SA-MP's ped movement synchronization contains velocity, let's consider Counter-Strike 1.6 as our synchronization doesn't contain velocity and just the position and rotation, have you played it? Have you seen how lag looks like there? That's exactly how lag looks like with simulation.
Reply


Messages In This Thread
Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 08:10
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by rfr - 02.12.2017, 08:25
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by NealPeteros - 02.12.2017, 09:02
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Admigo - 02.12.2017, 09:24
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 09:49
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Eoussama - 02.12.2017, 10:30
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 02.12.2017, 10:37
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Spydah - 02.12.2017, 10:47
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Gammix - 03.12.2017, 22:47
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Twizted - 03.12.2017, 23:31
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by davve95 - 04.12.2017, 06:19
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 04.12.2017, 20:37
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Gammix - 05.12.2017, 00:05
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by PeppeAC - 05.12.2017, 00:15
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Crayder - 05.12.2017, 00:54
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Yashas - 06.12.2017, 05:57
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 12:16
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Kaperstone - 06.12.2017, 12:45
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 13:11
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Kaperstone - 06.12.2017, 13:19
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 06.12.2017, 13:30
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by iAmir - 06.12.2017, 18:38
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by RIDE2DAY - 08.12.2017, 01:55
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 08.12.2017, 17:04
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Pottus - 09.12.2017, 00:23
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by ramzki2 - 09.12.2017, 02:15
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 09.12.2017, 15:22
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Sting. - 09.12.2017, 15:55
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by IllidanS4 - 09.12.2017, 17:56
Re: Most accurate server-sided physics simulation in SA-MP (using Bullet Physics) (A Ball) - by Aliassassin123456 - 09.12.2017, 18:46

Forum Jump:


Users browsing this thread: 7 Guest(s)