Background:
Rem The Dreamer is an indie project developed by a https://www.harmoniagames.com/ Harmonia Games, turkish studio. I joined the team later in development, which meant working with existing systems and legacy code. While I aimed to minimize disruption during my optimization work, this wasn't always possible. Here's a detailed breakdown of the optimization process.
Core Technical Constraints:
The game uses a fixed camera distance of 10 meters from the player. This consistent viewing distance eliminated the need for a LOD (Level of Detail) system, as objects would be culled by the camera frustum at a predictable distance. Many purchased assets included LOD systems suited for first-person perspective games, which was excessive for our needs.
Optimization Process:
LOD System Cleanup:
I developed a "Prefab Cleaner" tool to streamline asset optimization. This tool:
Transfers all components from the selected LOD to the prefab's parent
Relocates colliders from LOD0
Removes unnecessary LOD levels while preserving children with transforms outside specified tolerances
Shader Consolidation:
To reduce shader stutter, I addressed the redundancy of multiple shader packages performing similar functions. I created a material remapper tool that:
Allows input of channel names for both current and target shaders
Facilitates bulk conversion of materials to more optimized versions
Material Import Management:
I disabled automatic material creation during imports to prevent:
Proliferation of uneditable duplicate materials
Naming conflicts with existing editable materials
This change gave us better control over material management.
Shader Variant Optimization:
I removed unused keywords and properties (such as RECEIVEDECALS) to reduce the number of shader variants generated by materials.
Legacy Script Cleanup:
Some AI-generated scripts were inefficient, particularly those using physics for simple rotations. I implemented more efficient solutions, such as:
Replacing physics-based rotating chairs with shader-based animations
Creating a detection system for leftover script components from old branches
Systematically removing unnecessary script components
Prefab cleaner removes unncessary components for this isometric game with set camera distance