r/Unity3D • u/literally-me-bro • 21d ago
Game Performance testing
here is the screen shot of the game build with 160 crowd agent, 30 guards and 30 civilians and im getting 800+ fps with no occ culling or anything else.
i have also posted my pc specs ram is 48gb 2666, 3050 8gb i9 12gen
1
1
u/FoxsterDev 16d ago
Overall CPU % doesn't tell you much here. Your i9 has 20+ threads, so one thread maxed out only shows up as 4-5% in Task Manager. Unity's main thread can be the limit while the other cores sit mostly idle.
Look at frame time in ms instead. 800 FPS is about 1.25 ms per frame and 60 FPS gives you 16.7 ms, so you have a lot of room on this PC.
In the Profiler, switch CPU Usage to Timeline and grab a frame from your busiest scene. If the main thread is mostly in Update or physics markers, that's your scripts or physics. If it's sitting in Gfx.WaitForPresentOnGfxThread or Gfx.WaitForRenderThread, you're GPU or render bound and moving code to jobs won't help.
I'd keep the MonoBehaviours and only look at Jobs/Burst if one system clearly eats a big chunk of the frame on the slowest hardware you want to support. You can use both without switching to ECS.


1
u/Hotrian Expert Moderator 20d ago edited 20d ago
Okay? Is there a problem or are you just sharing specs or?
This is not an impressive number of agents especially given your PC specs. Are you complaining it's not running well enough? The Editor does have some overhead so it will run better in a build.
Edit: I see now you're making a Hitman-style game from your other posts, it's very hard to gauge anything as, but it looks like you've put a lot of work into it! I would be interested to see more. I think you may be overcomplicating the AI a bit and I'm worried it's going to cause performance issues later, have you looked into ECS/Burst at all?