Dedicated server support first pass - part 1/2 manual stripping [MTT-1936] #695
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Part 1/2 for first pass at adding DGS mode to boss room.
Stripping assets and making client scripts non-networkBehaviour to not mess with NetworkBehaviour indexing when they are stripped. Since stripping involves removing the script from the build, attached components on GameObjects become null, but still occupy a space in NetworkBehaviour's indexing if they were NetworkBehaviours. Things that could become client only now are now always offline and rely on other components to provide netcode hooks.
There are 3rd party tools to strip assets and scripts from builds. This PR shows what's involved to do it manually, for a small portion of boss room. Subsequent work would need to explore this in further details.
This PR strips the following:
TODO SAM before merging this
After asmdef move, a lot of those scripts are not stripped anymore. Another move to a separate asmdef might be needed. However, there are tools that exist that wouldn't require a move to a separate asmdef and would allow just selecting the scripts to strip. Need to take a decision on this for this first pass.
Stripping perf notes:
With release build, VM config: 10GB mem, 8 cores
This is a simplified branch to help with review. Original work branch for history purposes: origin/sam/feat/dedicated-server-support
Dedicated Server build target on linux, with build stripping + extra char select manually stripped:
Client hosted with desktop build target on mac, with no stripping at all:
Issue Number(s)
MTT-1936
Contribution checklist