How would I make an un-laggy game? (Elaboration below)

What I mean is by: You know how this game:

https://web.roblox.com/games/7009987220/Ragdoll-Stack#ropro-quick-search

isn’t laggy even with all of the ragdolls? How did they achieve that? I’m kind of wondering so I can make a game that will be a little bit laggy.

The rag doll won’t use that much memory. Without looking at the game they probably set it so the client handles all animations so it looks smooth on your screen.

Okay after checking out the game, when you press rag doll it will fire an event when ur animation is finished of the position and replicate it to server. There’s no physics within the rag doll so it won’t lag if you do something similair.

There’s no one answer to this question. This question is best asked after you’ve diagnosed and can pinpoint specific areas of degraded performance, like a certain system running really slowly.

In general when creating an experience you can be mindful of certain techniques and practices that can be optimised or avoided, yes, that’ll kickstart you into designing for performance early on but you’ll never actually know until you start creating your experience and stress testing it.

Performance on code is easy to test with the right tools (profiling, simple time checks) but performance of an overall experience is best tested when you have an actual product ready.

3 Likes

How are there no physics? I thought it was made up of constraints and all that

Well yes, but I mean by the time they are placed they seem to just be anchored in place

So you’re saying if I ragdoll and fall down into for eg, an infinite pit, eventually my ragdoll would just freeze?

Nope, I’m just saying in the game after the rag doll animation has finished it freezes the body, which means no more physics has to be done with the rag doll moving around

But what if you push the ragdoll? Would physics apply again?

Yeah usually, but in the game when the rag has been set and placed it no longer moves

So they probably anchored the model. If so, they must’ve done it instantly. A loop wouldn’t instantly anchor that, so how would it work/how would you anchor a model instantly via script?

Well when u press rag doll it seems they activate the rag doll effect, they then wait x seconds, probably like 2-3 and then they would run through and anchor the parts

I know but

     for i, v in pairs(instance:GetChildren())
               --Code
     end)

wouldnt work instantly.