Performance of the TApplication main loop
Created by: newinnovations
Commit 92453213 introduced an initial timeout value of 1 second in the TApplication run() main loop, causing a noticeable delay in the start up of the program. Reverting it back to zero resolves this.
Furthermore I noticed that the main loop redraws the screen every 50 ms, causing about 9% cpu load on one of the cores of a 7700k with my application when the application is idle.
Which is not a show stopper, but it would be nice when the main loop just sleeps when there is no activity. I noticed that there are already some wait() and notify() constructs in place. However raising the 50ms to say 200ms, causes some lagging in the processing of keys.