misc: chore: move Rainbow updating to a separate task started/stopped as needed

update gommon & use the Event class from it to allow easily clearing all handlers when the apphost exits to avoid leftover invalid event handlers in the rainbow event handler list.
More robust config application logic to ensure what needs to happen only happens once
This commit is contained in:
Evan Husted 2025-01-24 23:06:59 -06:00
parent 9b6afa0ea2
commit 3b5f6170d1
5 changed files with 68 additions and 31 deletions

View file

@ -168,8 +168,6 @@ namespace Ryujinx.SDL2.Common
HandleSDLEvent(ref evnt);
}
});
Rainbow.Tick();
waitHandle.Wait(WaitTimeMs);
}