I’m creating a game that has a lot of NPCs moving around at once, and animations right now are the biggest thing giving me trouble.
I can get them to animate just fine, it’s that animation scripts are really, REALLY demanding and often hog resources, making the server lag.
Fair enough, you say, just move it to the client! So that’s what I tried next, making the client handle all of the NPCs animations instead. And that (mostly) fixed server lag issues. However, once ~25+ NPCs were in game, my frames started dropping like crazy. (And I’m not running cheap hardware, mind you.)
So. I’m wondering what’s the best way to go about making a lot of NPCs animate nicely without hogging resources on either end. Any suggestions?