Black Market - performance hot-fixes!

boxart3small512.png

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):

profilingcompare.png


P.s : It may be an obvious tip, but try to hide Scene tab every time during the profiling or playing.
Otherwise it takes ~x3 amount of resources (even without editor overhead)
Enjoy!

https://ldjam.com/events/ludum-dare/44/black-market

proto3.gif