Finish background Lua GC before input processing

Related to #9043 (closed)

Finish background Lua GC before input processing

InputManager::update can run Lua synchronously: uiModeChanged fires on any input-driven UI mode change and races the background collection step. Reported as a menu-key freeze after !5487 (merged) merged.

Join the collection before the input update, so the state is never collected while the main thread can reach it. The background window keeps its bulk, the frame tail and the limiter sleep.

Merge request reports

Loading
Loading