Add support for buffering/threading prints to console and logfile, such that excessive printing alone won't cause lagging for players.