close rwop after use
print number of skipped frames per second
get rid of the global drawing state
async-ify everything
make data-dir configurable