November 4, 2022, 6:30am
Hi guys, I’m working on my game in the RTS genre and did a little stress test.
About the demo, I made 1000 server NPCs with a full pathfinding and fighting system.
A little information, in the test I used a computer based on AMD Radeon 5 5500U with Radeon Graphics and with 16 gigabytes of DDR4 RAM.
Little Update Of Optimization
Really cool test! Have you tried stress testing with an fps unlocker?
November 4, 2022, 6:59am
No, I’m not using fps unlocker
Okay I think you should test it with one because Roblox limits your framerate to 60FPS. (I’m guessing for Vsync so your computer doesn’t blow up for running at 1,000 fps.)
November 4, 2022, 7:35am
Well, i don’t think every player will use fps unlocker with my game in very big battles. So i don’t think this test necessary.
Are you using humanoids? If so, that’s pretty impressive!
November 4, 2022, 9:17am
I’m using my own custom humanoids.
November 5, 2022, 3:51pm
Little update, now game can handle 1000 npc with ~ 50 fps.
Roblox probably caps refresh rate at 60 to compensate for bad practices, such as using RenderStepped on things you shouldn’t. There is only so much FPS you can get and your CPU won’t go above a certain usage anyway.
Well I mean yeah, it really does save our computers from blowing up.
November 5, 2022, 5:03pm
You should move those units both on client and server side, so the client makes the movement smoother and server only corrects the client sided simulation. Ofc you should move those units in separated thread from the main one as it could lead to the lags, same for the minimap. Those systems should be separated from the main thread.
November 5, 2022, 5:54pm
All those units are server based, and client already use multithreading, about movement, npc have animation fps depending on distance from camera.
That’s not how it works, also since you meant it in the literal way no component is going to blow up on you in the 20th century.
November 5, 2022, 7:19pm
Btw, do you script those animations or create a single character and just copy those relative cframes of the character’s center?