diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-25 08:19:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 08:19:36 +0100 |
commit | 00e4f88e416f850dfc93d3e0a78e5399d08c099a (patch) | |
tree | 1fa2e71ede6c1d13a4c00b0cc4f44b6ecf3a212a /core | |
parent | 4d7ab010dbd4558cbca74c49a2f667fd9e81a49e (diff) | |
parent | 8d8c7a9383d40b10f14b26622b496efb4033e12c (diff) |
Merge pull request #37276 from Calinou/tweak-message-queue-max-size-hint
Tweak the message queue maximum size property hint
Diffstat (limited to 'core')
-rw-r--r-- | core/message_queue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/message_queue.cpp b/core/message_queue.cpp index 37207483fe..26f5b23416 100644 --- a/core/message_queue.cpp +++ b/core/message_queue.cpp @@ -343,14 +343,14 @@ bool MessageQueue::is_flushing() const { MessageQueue::MessageQueue() { - ERR_FAIL_COND_MSG(singleton != NULL, "MessageQueue singleton already exist."); + ERR_FAIL_COND_MSG(singleton != NULL, "A MessageQueue singleton already exists."); singleton = this; flushing = false; buffer_end = 0; buffer_max_used = 0; buffer_size = GLOBAL_DEF_RST("memory/limits/message_queue/max_size_kb", DEFAULT_QUEUE_SIZE_KB); - ProjectSettings::get_singleton()->set_custom_property_info("memory/limits/message_queue/max_size_kb", PropertyInfo(Variant::INT, "memory/limits/message_queue/max_size_kb", PROPERTY_HINT_RANGE, "0,2048,1,or_greater")); + ProjectSettings::get_singleton()->set_custom_property_info("memory/limits/message_queue/max_size_kb", PropertyInfo(Variant::INT, "memory/limits/message_queue/max_size_kb", PROPERTY_HINT_RANGE, "1024,4096,1,or_greater")); buffer_size *= 1024; buffer = memnew_arr(uint8_t, buffer_size); } |