Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2.14k stars 205 forks source link

Auto attach needs delay for Unity #235

Closed Mars132 closed 5 years ago

Mars132 commented 5 years ago

Tested on these two: https://vndb.org/r59201 and RJ228027

Textractor fails to find needed threads in Unity games if attached immediately after the game's launch via auto attach. Haven't tested the exact threshold, but should be within 3-4 seconds. Would be nice to have an option in settings to delay auto attach by N seconds, or make a universal one and test it. Or both, configurable 2 second delay should probably hit the spot.

Mars132 commented 5 years ago

Actually, 2-4 seconds won't help with Aokana. After trying many combinations of when to attach, I noticed how Textractor keeps eating 13-40% CPU if attached before the game is loaded and text window appears. CPU usage doesn't disappear even after a few minutes. Guess I will have to attach manually here. Not sure if auto attach delay would help in other games, guess I'll close the issue.

Also, my big brain just realised I could delay Textractor in a .bat file, so it starts later.