Correctly distinguish between game and real ticks while recording video,
so that paused game and speed-up demo are recorded better.
Also support recording videos from demos executed directly (without frontend),
such videos will be automatically encoded on frontend startup.
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}