Alright, so I really need help with this issue I’ve encountered with my jaguar rig! I’m making a cartoony-ish animal game, and I created a jaguar rig in Blender. Upon playing as the character in-game, when zooming in, I have a pretty bad lag.
At first I thought it would be the awkward placing of the parts, however, when I collided with another jaguar - I experienced 0 lag. Also, I tried removing all texture/decals from the rig, and that failed to change anything. I have also tried moving my camera inside of the other rig, and still encountered no lag.
I also have a wolf rig with a higher vertex count and more parts, yet upon zooming in, it does not have this problem!
If anyone knows the answer to this issue, please tell me down below. It’d be a shame to throw this rig into the garbage, especially since it has a lower vertex count and less parts than my wolf. : (
It looks like it’s related to when the character model turns transparent when you zoom in. Can you make a localscript that connects to renderstepped and every frame sets every part in the character to have LocalTransparencyModifier = 0. See if this has any effect on the lag issue. If it helps, this is just a test, and is not a final solution. The next step would be to start making body parts invisible until you can determine which part causes lag, or if it’s all of them.
I’ve tried doing this, and it seems like all the parts are the result of the lag (which is VERY strange to me), considering how I can do this https://gyazo.com/4d8766ab1361418d9b6a3ed6ce7a6071 , with 0 lag. The more parts I would make transparent, the less lag there was upon zooming in.
Thank you for your help though! I hope I can find a solution. Out of all the Blender rigs I’ve made, I’ve never encountered this issue, and this is very strange to me.
I’ve noticed framerate drops with meshes and unions set to default collision recently. You could quickly change them all the box and see if that fixes it. It might have to do with camera raycasts on the model or something. If not, then is is probably the transparency as someone had mentioned.
The only thing that’s different is the textures/decals I placed on it, however - I’ve completely wiped all the textures + decals, and the issue is still occurring.
I don’t really think my OS + GPU would matter very much, as I’ve already had multiple people test out this issue, and experience the same results as me. However, you can find the place here: Fennecpaw's Place Number: 97 - Roblox
Unfortunately the problem is that your MeshParts are too complex. They don’t need to be as complex as they currently are. There are 7.3k triangles on that torso part you sent me. You can cut that down significantly without losing any meaningful detail.
If you want to know why this doesn’t happen with the wolf model, I can probably figure it out by comparing some things if you make another place so the wolf character model is the active playermodel.
For every MeshPart, there’s one of these generateBatchGeometry entries in the microprofiler. These happen whenever a part changes in appearance (not position or rotation), such as when the transparency tween happens. For the most complex parts in your character model these take around 0.7ms each. On one of my intentionally low poly MeshParts (~700 tris), this value is 0.009ms or lower.
Because this tween effect runs every frame, you notice frames dropping because it now takes significantly longer to render each frame. (The white vertical lines mark the start of each frame. Notice the distance between them is much larger during the tween effect.)
In blender you can apply a decimate modifier which will try to collapse unnecessary faces on your mesh without losing shape.
You can also apply smooth normals to selected faces in edit mode on your mesh to get rid of hard edges. I’m guessing you’re trying to work with high poly because you want your meshes to look smooth, but you don’t need high poly to have smooth meshes. (I also like to combine this with the edge split modifier to preserve intentional hard edges, but you can also select edges and manually make them sharp if you need to.)