Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

4

Found in [Package]

1.1.0-pre.5

Issue ID

1340958

Regression

No

[IL2CPP] Including the Input System package in project significantly adds to build sizes

Package: Input System

-

Reproduction steps:
1. Open attached project "OptimizeForWebGL.zip"
2. Build with Input System package and note build folder size
3. Build without Input System package and note build folder size
4. Compare the two build folder sizes

Expected result: The size difference between the two builds is negligible (~3mb)
Actual result: The size difference between the two builds is significant (~160mb)

Reproducible with: 0.2.1-preview (2018.4.35f1), 1.1.0-pre.5 (2019.4.28f1, 2020.3.12f1, 2021.1.12f1, 2021.2.0a20)

Note:
Issue does not reproduce with - Windows platform with Mono scripting backend, WebGL platform.

  1. Resolution Note:

    The changes necessary to address this issue are API breaking changes (removing Preserve attributes on lots of types and changing the layout system so it doesn't have to rely on reflection) so they will have to be made as part of a v2. Note though that the size difference as reported in the issue most likely includes the '[...]_BackUpThisFolder_ButDontShipItWithYourGame' folders. When those folders are removed, the difference is 49MB vs 43MB (with low stripping) for the Windows build, with and without the input system, so not as extreme as in the issue but should still be addressed.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.