2012-09-14 02:14:36 -06:00
|
|
|
-- Set the FPS cap at runtime.
|
2015-10-23 22:10:15 -06:00
|
|
|
--[[=begin
|
|
|
|
|
|
|
|
setfps
|
|
|
|
======
|
|
|
|
Run ``setfps <number>`` to set the FPS cap at runtime, in case you want to watch
|
|
|
|
combat in slow motion or something.
|
|
|
|
|
|
|
|
=end]]
|
2012-09-14 02:14:36 -06:00
|
|
|
|
|
|
|
local cap = ...
|
|
|
|
local capnum = tonumber(cap)
|
|
|
|
|
|
|
|
if not capnum or capnum < 1 then
|
|
|
|
qerror('Invalid FPS cap value: '..cap)
|
|
|
|
end
|
|
|
|
|
|
|
|
df.global.enabler.fps = capnum
|