Skip to content

Commit

Permalink
MessageQueue: Change default queue size to 4096 KB
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akien-mga committed Sep 24, 2020
1 parent a6bb4f7 commit 5009ba5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/message_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class MessageQueue {
_THREAD_SAFE_CLASS_

enum {

DEFAULT_QUEUE_SIZE_KB = 1024
DEFAULT_QUEUE_SIZE_KB = 4096
};

enum {
Expand Down

0 comments on commit 5009ba5

Please sign in to comment.