Update loop and render loop implemented in main loop plugin