Guy, what is the right way to use this two features? Cuz I’ve made A LOT of tests, reading the UPBGE doc to make everything right, using (obviously) objects with the same mesh/materials and low poly count, but the results are:
Mesh Batching: Absolutely no difference with or without them. No gain or loss of fps. Searching a little bit here, I’ve found that some people had a lot of fps gains batching objects, and others (like me), no…
I’m batching my objects like this (in a summarized way):
if not "batchedTrees" in cont.owner: cont.owner["batchedTrees"] = types.KX_BatchGroup( [obj for obj in scene.objects if "batchTree" in obj] )
Geometry Instancing: If I activate this option (following the instructions on UPBGE API), this just ruined my fps!! Goes from 70-80 fps to 5 or 3… And I don’t know why, but in some objects (like my grass), If I activate this, the objects glitch,I think they stop getting theright camera transformation, or something like this, and always stays in front of the camera (no matter if I’m looking or not to the objects, they cover everything!).
What is the right way to use them? Can someone give me a .blend example? Thanks!