Skip to content

Releases: Bentroen/GMPython

0.2.0

21 Jan 08:23
Compare
Choose a tag to compare
  • 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.

0.1.0

25 Aug 08:55
Compare
Choose a tag to compare
  • Initial release!