retroandchill / mkxp-z

A very heavily modified fork of mkxp. RGSS on steroids with a stupid name.
https://github.com/mkxp-z/mkxp-z/wiki
1 stars 0 forks source link

Redesign Event Thread #3

Closed retroandchill closed 8 months ago

retroandchill commented 8 months ago

Due to the design of this as a Gem the Event Loop and RGSS Thread needed to swap places in the code execution. As such the EventLoop needs to be run as its own thread so that the RGSS thread can continue to execute whatever Ruby code is executed after the window starts up.

  1. Ideally, this would involve having the event loop actually be able to exit itself and then invoke ruby_stop in order to still the interpreter to stop running after the window is closed.
  2. The event loop also needs to self-terminate when the code reaches the end of its execution, for when the last scene ejects
retroandchill commented 8 months ago

This may not be necessary anymore due to recent changes