Post subject: How do I set the Speed Throttle to between 100 and 150%?
Joined: 2/25/2006
Posts: 407
How do I set the Speed Throttle to between 100 and 150%? I'd like to play N64 games at a faster speed so the frame rate is smoother, but 150% is a little too fast when it comes to handling the gameplay.
Ryzen 3700X, ASUS Crosshair VIII Hero (WiFi) Motherboard, 32GB 3600MHz RAM, MSI Geforce 1070Ti 8GB, Windows 10 Pro x64 http://tasvideos.org/Nach/FranpaAlert.html
Editor, Reviewer, Skilled player (1359)
Joined: 9/12/2016
Posts: 1646
Location: Italy
Try this Lua script:
Language: lua

local function reset_speed() client.speedmode(100) end event.onexit(reset_speed) client.speedmode(125) while true do emu.frameadvance() end
Note that it does automatically reset to the normal emulation speed when you stop executing this script. You can replace "125" with the value you prefer.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Joined: 2/25/2006
Posts: 407
Hmmm, I put all of that in a text file with a LUA extension and I get a error:
NLua.Exceptions.LuaScriptException: [string "main"]:2: function arguments expected near 'local'
If I exclude the first line specifying the language I get:
NLua.Exceptions.LuaScriptException: [string "main"]:10: 'do' expected near 'emu'
I've... never used LUA scripts via Bizhawk before, I assume I'm supposed to go to Tools > LUA Console and open the script there. A game is running during these attempts.
Ryzen 3700X, ASUS Crosshair VIII Hero (WiFi) Motherboard, 32GB 3600MHz RAM, MSI Geforce 1070Ti 8GB, Windows 10 Pro x64 http://tasvideos.org/Nach/FranpaAlert.html
Editor, Reviewer, Skilled player (1359)
Joined: 9/12/2016
Posts: 1646
Location: Italy
Sorry for the late reply.
franpa wrote:
Hmmm, I put all of that in a text file with a LUA extension and I get a error:
NLua.Exceptions.LuaScriptException: [string "main"]:2: function arguments expected near 'local'
Yeah, the first line is not part of the scritpt.
franpa wrote:
If I exclude the first line specifying the language I get:
NLua.Exceptions.LuaScriptException: [string "main"]:10: 'do' expected near 'emu'
Sorry, I forgot the write "do" after "true". I modified my previous post, now it works.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"
Joined: 2/25/2006
Posts: 407
Hmmm... that still doesn't seem to work. It does produce a OSD message that the speed has changed to the value specified in the LUA file and the throttle % in the Config>Speed/Skip menu changes. Would vsync prevent it from having any effect? Edit: Yes, it does. Make sure vsync isn't forced by the display driver. Thank you very much for the working example, it's greatly appreciated :) Now if only audio didn't pop when speed was in excess of 60 >.>
Ryzen 3700X, ASUS Crosshair VIII Hero (WiFi) Motherboard, 32GB 3600MHz RAM, MSI Geforce 1070Ti 8GB, Windows 10 Pro x64 http://tasvideos.org/Nach/FranpaAlert.html
Editor, Reviewer, Skilled player (1359)
Joined: 9/12/2016
Posts: 1646
Location: Italy
franpa wrote:
Now if only audio didn't pop when speed was in excess of 60 >.>
Maybe you can use an external program for processing the audio output.
my personal page - my YouTube channel - my GitHub - my Discord: thunderaxe31 <Masterjun> if you look at the "NES" in a weird angle, it actually clearly says "GBA"