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
Added python_set_buffer_size() function to increase the size of GMPython's internal buffer, used for exchanging data.
By default, the size of this buffer is 4,096 bytes — use this function prior to calling python_call_function() if you need to pass larger values around.
Although it's possible to call this function with a larger value followed by a smaller one, the buffer size may never be shrunk — only expanded.
Fixed a memory leak caused by restarting the Python interpreter on every function call. The extension now uses a single interpreter instance for the game's entire lifetime, which is initialized automatically on startup.
This also prevents modules that load C extensions, such as numpy, from crashing when they're called a second time.