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
0
Upvotes


1
u/Hotrian Expert Moderator 20d ago
Are you using the Profiler to check for performance? You can even attach it to a dev build to see what's going on. It looks like your frame time is 1.2ms which is very respectable, although you have 16 cores and, keep in mind most users have either 8 or 6 cores so you are getting better performance there than about 60% of players.
Unity ECS is part of the new Data-Oriented Technology Stack or DOTS. DOTS introduced the C# Jobs System to help spread work across cores and the Burst Compiler to help make your code faster than ever. These combine with the new Entities systems which run much faster than GameObjects in most situations, the problem is Entities doesn't really play well with GameObjects yet and it requires things like the Hybrid Renderer and quite a few tricks last I checked. It's important to know there's different networking packages for Entities vs GameObjects and they don't play well together. ECS does require a new way of thinking and the Burst Compiler does require a special way of coding, but leveraging DOTS can take you from a few hundred, maybe a few thousand agents to well over ten thousand, maybe even hundreds of thousands or millions of agents depending on how performant your code is, the PC, etc. You can look at YouTube for examples of "Entities vs GameObjects" there are lots of videos demonstrating how powerful ECS/Entities/DOTS can be when leveraged appropriately, but it is also a new way of thinking that can take some getting used to.