Skip to content

Commit

Permalink
Adding Map update rate
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Jun 5, 2024
1 parent 9e1ae1b commit 55ea16f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions Carbonite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ local defaults = {
InstancePlayerSize = 24,
InstanceGroupSize = 24,
InstanceScale = 16,
mapUpdate = .05,
},
MiniMap = {
AboveIcons = false,
Expand Down
2 changes: 1 addition & 1 deletion NxMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3910,7 +3910,7 @@ local ttl = 0
function Nx.Map.OnUpdate (this, elapsed) --V4 this

ttl = ttl + elapsed
if ttl < .05 then
if ttl < (Nx.db.profile.Map.mapUpdate or .05) then
return
end
ttl = 0
Expand Down
17 changes: 17 additions & 0 deletions NxOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,23 @@ local function mapConfig ()
end,
},

mapUpdate = {
order = 7,
type = "range",
name = L["Map update rate"],
desc = L["sets map update refresh rate"],
min = 0,
max = .25,
step = .01,
bigStep = .01,
get = function()
return Nx.db.profile.Map.mapUpdate
end,
set = function(info,value)
Nx.db.profile.Map.mapUpdate = value
end,
},

mZGVUpdateGoto = {
order = 7,
type = "toggle",
Expand Down

0 comments on commit 55ea16f

Please sign in to comment.