Hi guys
So I thought batching was supposed to improve performance?
I did 2 test scenes the one with static meshes and shared materials. The other no batching or static.
The scene with batching was running at 20 fps with 583 batches total (of which 183 batched)
The other scene had 1300 total batches(0 batching) and ran at around 20 fps as well.
This is a rather massive performance hit for something that is supposed to improve performance? Or is that not what batching is for?
Ps i have a low end machine so stop laughing at my figures:p
I see 20fps vs 20fps in your post, where do you see a performance loss? If you really want to optimize performance, you need to look at the time in ms that each aspect takes. If you have a low end computer maybe you are cpu-limited where others wouldn’t be. I don’t know much about optimizing performance in unity but I know that artificial test cases often fail to reproduce real-world gains or show gains that in a real usecase would not be as big. Did you use the same assets from the project you want to optimize, or just cubes?
Batching won’t improve performance if you’re GPU-limited. Also, in order to be valid, the comparison would need to be 100% identical except for batching. So don’t use different scenes, just use the same scene and turn batching on/off in the player settings.
–Eric
New test 7000 batches 40-50fps all standard shader slot empty no static batching (0batched).
2 test same mesh same mats shader number etc. Static batched 7000 total batches(6800 batched) 42fps steady.
So batching is absolutely worse in my tests to date???
Ps my poor results from yesterday were due to missing mats unity does not like that at all.
Look at the profiler, not the stats window, since that’s not the whole picture.
–Eric
Havent been able to figure out the profiler yet but fps is a main concern and everytest i have run shows batching reduces the fps or stays about the same and does batching not also require a great deal of extra memory so couple that with a same or worse fps and seems to me that static batching is not working. What things should i be looking for in the profiler?
Just click record in the profiler and look at the CPU and GPU times per frame. The graphics fps in the stats window is not the “real” total fps that the game is running at.
–Eric
Do es not look like a major performance boost
If you have vsync on, turn it off.
–Eric
turned off vsync but no change
Also just noticed that there are no shadows been cast even though i turned it on and am getting the fps knock no shadows.Hmm change the quality setting from fantastic to beautiful brought back the shadow will test batching again to see if that had something to do with this?Nope did not help static batching I have summited a bug report so hope i dont end up looking a fool:smile:



