trying to make strategy game but having a problems with puppets and lagging
i have a human unit that i can command with a mouse icon but my game lags when i have 15-20 puppets in one scene, everything needs to work on 1 scene that being a battle map, i wanna use puppets as human character models but i want my game to handle like 40 puppets in one scene... this sounds impossible to do unless i use something simple like shapes to represent whats human and whats a tank.
-
Puppets have tons of extra logic built in for all those animation options. You'll probably have to find a way, like you said, to use some other object with simple animations instead of a fully functioning puppet.
-
I think there's also a hard limit on the number of raycasts in a scene, which each puppet has a bunch of. So I don't think you'd have room for much more than 20 puppet's, plus you'd be out of room for laser scopes.
It'd be really nice if there was a feature that allowed you to bake the puppet procedural animations to be used without all the extra puppet logic. Believe me, I tried! Created a sort of meta-rig that mimmicked a puppet so I could record it with the action recorder... Failed miserably. I still think there's a way, though! -
To be clear, it's not the sculpts (body parts) that slow things down. It's the fact that it's a puppet at all. So if you took those puppet rigs out of the puppet group, you'd have the same form and joint setup ready to go. Then you can add animations to it for walking and so on. This means you won't have the procedural animations, but those are pretty performance-heavy, so if you want a lot of these units in the scene then you don't want them all to be procedurally animated anyway.
So you can have as detailed a model as you like for the units. Just be sure to take them out of the puppet group ("puppet heart") and animate them yourself to save on performance.
Here I show how to take a puppet out of the puppet group, and back again: https://www.youtube.com/watch?v=K8Zj-LrQ7J8&list=PLX3qX-yI9vm5PKv_iq8l1ItkX6zZ3uXun&index=2
Hope this helps.
Accedi per aggiungere un commento.