Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
f8f56963
Commit
f8f56963
authored
Dec 21, 2019
by
Fabio Alessandrelli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct size for PacketPeerStream in Debugger.
We wanted 8 MiB but we were getting 16 MiB (minus 4 bytes for the separator). We are now getting 8 MiB minus 4 bytes for encoding.
parent
78f15139
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
script_editor_debugger.cpp
editor/script_editor_debugger.cpp
+1
-1
script_debugger_remote.cpp
scene/debugger/script_debugger_remote.cpp
+1
-1
No files found.
editor/script_editor_debugger.cpp
View file @
f8f56963
...
...
@@ -2247,7 +2247,7 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) {
add_constant_override
(
"margin_right"
,
-
EditorNode
::
get_singleton
()
->
get_gui_base
()
->
get_stylebox
(
"BottomPanelDebuggerOverride"
,
"EditorStyles"
)
->
get_margin
(
MARGIN_RIGHT
));
ppeer
=
Ref
<
PacketPeerStream
>
(
memnew
(
PacketPeerStream
));
ppeer
->
set_input_buffer_max_size
(
1024
*
1024
*
8
);
//8mb should be enough
ppeer
->
set_input_buffer_max_size
(
(
1024
*
1024
*
8
)
-
4
);
// 8 MiB should be enough, minus 4 bytes for separator.
editor
=
p_editor
;
editor
->
get_inspector
()
->
connect
(
"object_id_selected"
,
this
,
"_scene_tree_property_select_object"
);
...
...
scene/debugger/script_debugger_remote.cpp
View file @
f8f56963
...
...
@@ -1257,7 +1257,7 @@ ScriptDebuggerRemote::ScriptDebuggerRemote() :
scene_tree
(
NULL
)
{
packet_peer_stream
->
set_stream_peer
(
tcp_client
);
packet_peer_stream
->
set_output_buffer_max_size
(
1024
*
1024
*
8
);
//8mb should be way more than enough
packet_peer_stream
->
set_output_buffer_max_size
(
(
1024
*
1024
*
8
)
-
4
);
// 8 MiB should be way more than enough, minus 4 bytes for separator.
phl
.
printfunc
=
_print_handler
;
phl
.
userdata
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment