Posted May 01, 2019 by Vitalii Zavoloka
It's took me almost a whole day working around Unity profiler.
Fortunately I was able to fix most of things caused performance issues.- Baked light on the scene
- Threw away useless global illumination (which was enabled by default)
- Switched every light source type to Mixed (instead Realtime)
- Increased time for Physics calculations
My greetings to the following call stacks : ------------------ Physics.Processing FixedUpdate.PhysicsFixedUpdate Pxs.AABBManager.SingleAABB Pxs.Context.ContactManagerDiscreteUpdate Pxs.Context.CCDAdvanced PXs.Context.UpdateCCDsinglepath
- Removed unused code from Asset Camera script (FixedUpdate())
- Reduced the amount of polygons on some Meshes. (Couple of them I was forced to remove at all)
- Reduced rain VFXs
- Fixed shoot aim Raycaster (now it's more accurate, but not perfect yet )
- Tweaked the in-game balance (monster health, revolver damage)
- Minor SFX fixes
- Added game state output (top-left corner)
Result (from left - to right):