Why do roblox physics go slow like this sometimes, is there a way to fix this?

Title
the shells are fully client sided

3 Likes

I don’t know why it does this, but I can confirm that I have also had this occurrence in almost every gun system I’ve made with client-sided shell ejection. Sometimes I wonder if it’s a physics bug because I don’t see anything wrong for it do that.

1 Like

This is the result of lag, i think. Just make it on the server, that should fix it. If you want them client-sided, remove them locally from every other instance with a remote event.

2 Likes

I don’t think it’d be lag at all, I could have one shell ejected and it goes slow motion for a second. I’ve done shell ejection multiple ways before, although I may try using things such as BodyMovers to see if those work.

1 Like

There is no way to disable physics throttling. It will always happen whenever the engine decides the total physics cost is too expensive to preserve framerate.

The best thing you can do is limit how many bodies are being locally simulated at a time and simplify their collisions. Are you reusing all of your meshes and setting their collision fidelities to cylinder?

1 Like

oh ok

Im cloning a shell for every shot then deleting it after 5 seconds
where can you change a collision fidelities

will anchoring the shell when its stopped moving save engine resources in regards to physics?

What you should do is keep the same 10-ish bullet meshes in a cache dictionary and reuse them every time you need a new one. Instead of reparenting them once you’re done, reposition them somewhere far away like Vector3.yAxis * 1e20 so that their physics cache doesn’t get invalidated.

You can also set the CollisionFidelity of a MeshPart in studio. Anchoring the parts once they’re done moving would be tricky since there’s no way to guarantee that they are completely done moving, and even then, you’d probably not want to do that since anchoring and unanchoring the part might also invalidate its physics cache.

1 Like

would that mean there can only be 10 shells at once if there’s only 10 in cache? if so, do i just cache more if i want more bullets; idk if im understanding this right


i think it has something to do with physic objects being close to eachother
im not sure though

1 Like

One solution I’ve found that seems to work is disabling FluidForces on the parts of the bullet and the viewmodel. It still goes slow motion sometimes, but it does it a lot less and less aggresively.

image


Edit: Make sure fluid forces are off on every single gun part, shell part, & viewmodel part.

1 Like

thanks for replying , ill try this out when i can