auto scale resolution to try to reach 30 fps
update demo state