Removed unnecessary cameras in the battle scene to improve performance (and code), now using only one.
Performance impact
Both the CPU and GPU now perform fewer operations for rendering graphics.
Tested on a low-end device:
CPU: processing time in the RenderCameraStack reduced by ~1ms.
GPU: reduced rendering thread time by ~1ms due to the removal of a call to the URP RenderSingleCamera process.
Summary of changes
Removed NoPostProcessCamera and UI camera.
Refactored CustomMMTouchJoystick and CustomLevelManager scripts.
Updated prefabs that were affected by the NoPostProcessCamera tag, used for culling purposes.
How has this been tested?
Playing through all characters from beginning to end, paying particular attention to elements previously affected by the NoPostProcessCamera (health bars, orientation element, stamina and skill indicators).
Checklist
[x] I have tested the changes locally.
[x] I have tested the whole game after applying the changes, not only the affected areas.
[x] I self-reviewed the changes on GitHub, line by line.
Motivation
Removed unnecessary cameras in the battle scene to improve performance (and code), now using only one.
Performance impact
Both the CPU and GPU now perform fewer operations for rendering graphics.
Tested on a low-end device:
Summary of changes
How has this been tested?
Playing through all characters from beginning to end, paying particular attention to elements previously affected by the NoPostProcessCamera (health bars, orientation element, stamina and skill indicators).
Checklist