Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local keys = input.get()
- local unpauseLag=false
- local consecutiveLagFrames=0
- while true do
- if consecutiveLagFrames>10 then
- unpauseLag=true
- end
- if unpauseLag then
- if not emu.islagged() then
- joypad.set({Start=1},1)
- unpauseLag=false
- end
- end
- if emu.islagged() then
- consecutiveLagFrames= consecutiveLagFrames + 1
- else
- consecutiveLagFrames=0
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement