fixed slow down due to fps
fix: variables declared outside loop
Merge pull request #20 from MGoyheneche/fix/framerate

fixed slow down due to fps