Umm ... look for interprocess communication . Then make your processes consistent with each other (for example, pass data structures, commands, etc.). You will probably need the rendering process and the main process (or combine these two into one rendering / command process).
source
share