input_thread, graph_thread: added completion, added graphics thread

Was easy. Pretty painless. Flinging pointers around for fps and frames is not pretty. Will look into fixing that.