What is better, server or client side NPCs?

I’m about to create my NPC system(zombies) for my game, and I want to know if only rendering the real rig from the NPC on the client and an invisible part in the server(to work as holder for any bullet impact) would have less impact in the player & server performance and if it does worth it (The NPC walking it’s managed by the client, the server only provides the waypoints)

For the Server-side, everyone would see the Zombie at the same position. We don’t want to each player see them in a different position right? You should run it on the Server-side.

1 Like

But wouldn’t that affect players performance as zombies will be in the game no matters that they are very away from them?

I also think rendering the zombie on the client would be a smart idea, but there are still some drawbacks such as physic glitch or whatever. I still think you should run it in the Server-side because the less loop you are using, the better performance. If you use a loop like finding a player every 1 seconds, that should be fine.

1 Like

Yes, sadly as you said, there is latency between server & players calls. I think that only spawning zombies if there are players nearly of the zone could be the best option.