added fps control

additional timeout set according to fps