Skip to content

fix: Dispose of PooledBitStream used in the MessageBatcher, also stor…#436

Merged
0xFA11 merged 5 commits intodevelopfrom
feature/rpcbatch-memoryfix
Jan 13, 2021
Merged

fix: Dispose of PooledBitStream used in the MessageBatcher, also stor…#436
0xFA11 merged 5 commits intodevelopfrom
feature/rpcbatch-memoryfix

Conversation

@jeffreyrainy
Copy link
Copy Markdown
Contributor

…es only the FrameQueueItem's channel, as opposed to the whole FrameQueueItem

MTT-193 MTT-250

…es only the FrameQueueItem's channel, as opposed to the whole FrameQueueItem

MTT-193 MTT-250
Comment thread com.unity.multiplayer.mlapi/Runtime/Core/MessageBatcher.cs Outdated
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! All minor tweaks made and the other called out items can wait until we migrate Batching to the job system and/or when we update the stream stuff (i.e. BatchThreshold can be exposed later and the suggestion to invoke the dispose method via a using statement will go away when stream read/write stuff is replaced).

Copy link
Copy Markdown
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@0xFA11 0xFA11 merged commit 2ceb7eb into develop Jan 13, 2021
@jeffreyrainy jeffreyrainy deleted the feature/rpcbatch-memoryfix branch January 13, 2021 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants