demo_flush

Flush writing the demo file every network update