{"author_link":"\/users\/bbaf","author_name":"bbaf","author_uid":"bbaf","comments":[],"epoch":1556749544,"event":"LD44","format":"md","ldjam_node_id":155814,"likes":1,"metadata":{"p_key":"131870","p_author":"bbaf","p_authorkey":"1051910","p_urlkey":"348064","p_title":"Black Market - performance hot-fixes!","p_cat":"LDJam ","p_event":"LD44","p_time":"1556749544","p_likes":"1","p_comments":"0","p_status":"WAYBACK","us_key":"1051910","us_name":"bbaf","us_username":"bbaf","event_start":"1556236800","event_key":"75","event_name":"LD 44"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD44","removed_author":false},"_superparent":139254,"_trust":8,"author":51910,"body":"![boxart3small512.png](\/\/\/raw\/6ca\/c\/z\/243e0.png)\n\nIt's took me almost a whole day working around Unity profiler.  \n   \nFortunately I was able to fix most of things caused performance issues.  \n  \n- Baked light on the scene  \n- Threw away useless global illumination (which was enabled by default)  \n- Switched every light source type to Mixed (instead Realtime)  \n- Increased time for Physics calculations  \n  \nMy greetings to the following call stacks :  \n```   \nPhysics.Processing  \nFixedUpdate.PhysicsFixedUpdate  \nPxs.AABBManager.SingleAABB  \nPxs.Context.ContactManagerDiscreteUpdate  \nPxs.Context.CCDAdvanced   \nPXs.Context.UpdateCCDsinglepath  \n```   \n- Removed unused code from Asset Camera script (`FixedUpdate()`)  \n- Reduced the amount of polygons on some Meshes. (Couple of them I was forced to remove at all)  \n- Reduced rain VFXs  \n- Fixed shoot aim Raycaster (now it's more accurate, but not perfect yet )  \n- Tweaked the in-game balance (monster health, revolver damage)  \n- Minor SFX fixes  \n- Added game state output (top-left corner)  \n  \nResult (from left - to right):   \n      \n![profilingcompare.png](\/\/\/raw\/6ca\/c\/z\/243d8.png)\n\n- - -\n\n\nP.s  : It may be an obvious tip, but try to hide `Scene` tab every time during the profiling or playing.   \nOtherwise it takes ~x3 amount of resources  (even without editor overhead)   \nEnjoy!\n\nhttps:\/\/ldjam.com\/events\/ludum-dare\/44\/black-market\n\n![proto3.gif](\/\/\/raw\/6ca\/c\/z\/243e6.gif)\n","comments":0,"created":"2019-05-01T22:05:03Z","files":[],"files-timestamp":0,"id":155814,"love":1,"love-timestamp":"2019-05-01T23:22:47Z","meta":[],"modified":"2019-05-01T23:22:47Z","name":"Black Market - performance hot-fixes!","node-timestamp":"2019-05-01T22:25:44Z","parent":141022,"parents":[1,5,9,139254,141022],"path":"\/events\/ludum-dare\/44\/black-market\/black-market-performance-hot-fixes","published":"2019-05-01T22:25:44Z","scope":"public","slug":"black-market-performance-hot-fixes","subsubtype":"","subtype":"","type":"post","version":468521},"node_metadata":{"n_key":"155814","n_urlkey":"348064","n_parent":"141022","n_path":"\/events\/ludum-dare\/44\/black-market\/black-market-performance-hot-fixes","n_slug":"black-market-performance-hot-fix","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"51910","n_created":"1556748303","n_modified":"1556752967","n_version":"468521","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/44\/black-market\/black-market-performance-hot-fixes","text":"![boxart3small512.png](\/\/\/raw\/6ca\/c\/z\/243e0.png)\n\nIt's took me almost a whole day working around Unity profiler.  \n   \nFortunately I was able to fix most of things caused performance issues.  \n  \n- Baked light on the scene  \n- Threw away useless global illumination (which was enabled by default)  \n- Switched every light source type to Mixed (instead Realtime)  \n- Increased time for Physics calculations  \n  \nMy greetings to the following call stacks :  \n```   \nPhysics.Processing  \nFixedUpdate.PhysicsFixedUpdate  \nPxs.AABBManager.SingleAABB  \nPxs.Context.ContactManagerDiscreteUpdate  \nPxs.Context.CCDAdvanced   \nPXs.Context.UpdateCCDsinglepath  \n```   \n- Removed unused code from Asset Camera script (`FixedUpdate()`)  \n- Reduced the amount of polygons on some Meshes. (Couple of them I was forced to remove at all)  \n- Reduced rain VFXs  \n- Fixed shoot aim Raycaster (now it's more accurate, but not perfect yet )  \n- Tweaked the in-game balance (monster health, revolver damage)  \n- Minor SFX fixes  \n- Added game state output (top-left corner)  \n  \nResult (from left - to right):   \n      \n![profilingcompare.png](\/\/\/raw\/6ca\/c\/z\/243d8.png)\n\n- - -\n\n\nP.s  : It may be an obvious tip, but try to hide `Scene` tab every time during the profiling or playing.   \nOtherwise it takes ~x3 amount of resources  (even without editor overhead)   \nEnjoy!\n\nhttps:\/\/ldjam.com\/events\/ludum-dare\/44\/black-market\n\n![proto3.gif](\/\/\/raw\/6ca\/c\/z\/243e6.gif)\n","title":"Black Market - performance hot-fixes!","wayback_source":[]}