Releases: Bentroen/GMPython
Releases · Bentroen/GMPython
0.2.0
- 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.
- By default, the size of this buffer is 4,096 bytes — use this function prior to calling
- 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.
- This also prevents modules that load C extensions, such as