Added played class time to /played, also added a command to disable it

This commit is contained in:
Tercio Jose
2022-12-04 12:21:44 -03:00
parent 60c797d9ca
commit e12ec18381
6 changed files with 45 additions and 18 deletions
+3
View File
@@ -1367,6 +1367,9 @@ local default_global_data = {
merge_pet_abilities = false,
merge_player_abilities = false,
played_class_time = true,
check_stuttering = true,
--spell category feedback
spell_category_savedtable = {},
spell_category_latest_query = 0,
+13
View File
@@ -70,6 +70,19 @@ function SlashCmdList.DETAILS (msg, editbox)
_detalhes:ShutDownAllInstances()
end
elseif (command == "classtime" or command == "playedclass") then
Details.played_class_time = not Details.played_class_time
Details:Msg("played class:", Details.played_class_time and "enabled" or "disabled")
elseif (command == "stopperfcheck") then
Details.check_stuttering = not Details.check_stuttering
Details:Msg("stuttering/freeze checker:", Details.check_stuttering and "enabled" or "disabled")
if (Details.check_stuttering) then
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Custom
else
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Original
end
elseif (command == "perf") then
local performanceData = Details.performanceData
local framesLost = ceil(performanceData.deltaTime / 60)