major problem with not being able to wait for the next frame