You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system or device - Godot version:
Linux - Ubuntu Mate 16.10 - Godot 2.1.2 stable
Issue description:
I was facing an over usage of RAM with my Godot 2D game prototype, and I decided to find the cause of it. I wanted to see how many PackedScene instance Godot could handle without blowing out my RAM.
I built a main scene with a simple architecture:
---> Node // Script attached here
+----> YSort
I built also a scene called "Hexa.tscn", with a simple architecture too:
---> Area2D
+-----> Sprite
In a script attached to the root node of the main scene I try to add as much "Hexa" scene instance as possible in the YSort Node.
If I add 14562 Hexa scene instances, everything goes well (~3% usage of 1 CPU, ~115Mo RAM usage, that represents: 29655 Objects, 3 Resources, 29127 Nodes)
But if I add 14563 Hexa scene instances, I encounter a buffer overflow error, as follow:
In the Error tab of the debugger:
Type: Error
Description:
Time: 0:00:00:0458
C Error: Condition '(buffer_end+room_needed) >= buffer_size' is true. returned ERR_OUT_OF_MEMORY
C Source: core/message_queue.ccp:54
C function: push_call
Operating system or device - Godot version:
Linux - Ubuntu Mate 16.10 - Godot 2.1.2 stable
Issue description:
I was facing an over usage of RAM with my Godot 2D game prototype, and I decided to find the cause of it. I wanted to see how many PackedScene instance Godot could handle without blowing out my RAM.
I built a main scene with a simple architecture:
I built also a scene called "Hexa.tscn", with a simple architecture too:
In a script attached to the root node of the main scene I try to add as much "Hexa" scene instance as possible in the YSort Node.
If I add 14562 Hexa scene instances, everything goes well (~3% usage of 1 CPU, ~115Mo RAM usage, that represents: 29655 Objects, 3 Resources, 29127 Nodes)
But if I add 14563 Hexa scene instances, I encounter a buffer overflow error, as follow:
In the Error tab of the debugger:
In the Output tab of the debugger:
Is this a bug ?
Steps to reproduce:
Run the attached Godot project in Godot editor to see the error in the debugger.
Link to minimal example project:
memtest.tar.gz
The text was updated successfully, but these errors were encountered: