Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SpiderDave_LagRemover.lua lua script for FCEUX
- --
- -- by SpiderDave
- --
- -- Removes lag from games by speeding things up when lag is detected. This makes the sound
- -- missing, clicky, or garbled. Can't really fix this since when the game lags, the sound doesn't.
- turbo=false
- emu.registerafter(function()
- if emu.lagged() then
- emu.speedmode("turbo")
- turbo=true
- end
- end)
- emu.registerexit(function(x) emu.message("") end)
- while true do
- if turbo then
- turbo=false
- emu.speedmode("normal")
- end
- emu.message("") -- forces removal of "emulation speed" messages
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement