autobleem / AutoBleem

AutoBleem - Alternative to BleemSync/BootMenu, C++ based, GameScanner and Updater for Playstation Classic
GNU General Public License v3.0
500 stars 72 forks source link

[0.9.0](bug)(task) Fix app launching bug (effects performance) #321

Open BananaRama203 opened 4 years ago

BananaRama203 commented 4 years ago

Currently, if you launch any mod from STANDALONE build of AutoBleem there is an issue where the Autobleem-GUI is left running and fighting the launched app for framebuffer access and resource.

This is killing performance.

In the packaged build, I have included a VERY crude workaround which ensures that the AB thread is killed fully when a mod is selected, however it also uses PE launching logic so it's not applicable to standlone.

The recommendation is to refactor alot of the shell launching of the app and consolidate within 1 single shell which takes command line arguments. Also if you source the bash when starting instead of launching it. The sourced bash doesn't generate it's own PID.

Because of this you are unable to kill -s STOP and kill -s CONT the AB launcher wrapper and kill the autobleem-gui process inbetween.

The ideal situation would involve: