Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageQueue: Change default queue size to 4096 KB #42296

Merged

Conversation

akien-mga
Copy link
Member

1024 KB was low enough that many users seem to hit it, which can lead to the
editor freezing.

The proper fixed as described in #35653 would be to implement a page allocator
to prevent this overflow, but as a stop-gap measure, we can increase the
default value to a more lenient 4096 KB which should be high enough for the
vast majority of use cases.

The default size can be brought down again if/when #35653 is properly fixed,
and if it's actually relevant from a memory point of view.


For the reference, this was already proposed and rejected in the past: #28294.
But IMO, even if page allocation is implemented in master for 4.0, it's unlikely to be backported to the 3.2 branch, so a stop-gap measure makes sense there IMO.

I haven't done any impact assessment of what changing this default value would mean in practice in terms of memory use or performance. But IMO a 4096 KiB buffer size for something as critical as MessageQueue is a good compromise.

There's also a pending PR to implement page allocation: #35658, but it has yet to be reviewed by @reduz / merged or redone.

1024 KB was low enough that many users seem to hit it, which can lead to the
editor freezing.

The proper fixed as described in godotengine#35653 would be to implement a page allocator
to prevent this overflow, but as a stop-gap measure, we can increase the
default value to a more lenient 4096 KB which should be high enough for the
vast majority of use cases.

The default size can be brought down again if/when godotengine#35653 is properly fixed,
and if it's actually relevant from a memory point of view.
@akien-mga akien-mga added enhancement topic:core cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Sep 24, 2020
@akien-mga akien-mga added this to the 4.0 milestone Sep 24, 2020
@akien-mga akien-mga merged commit 9c9f336 into godotengine:master Sep 24, 2020
@akien-mga akien-mga deleted the messagequeue-default-size-4096-kb branch September 24, 2020 13:11
@akien-mga
Copy link
Member Author

Cherry-picked for 3.2.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant