set thread to paint screen for emulator, some changed for generator as work timer, etc.