temporary hack for a fixed frame rate (not accurate)