mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 14:43:27 +02:00
Fixed high memory usage issue
This commit is contained in:
@@ -133,6 +133,7 @@ function sendStats()
|
||||
cpu = g_platform.getCPUName(),
|
||||
mem = g_platform.getTotalSystemMemory(),
|
||||
mem_usage = g_platform.getMemoryUsage(),
|
||||
lua_mem_usage = gcinfo(),
|
||||
os_name = g_platform.getOSName(),
|
||||
platform = g_window.getPlatformType(),
|
||||
uptime = g_clock.seconds()
|
||||
@@ -170,6 +171,7 @@ function update()
|
||||
end
|
||||
|
||||
statsWindow.debugPanel.sleepTime:setText("Sleep: " .. math.round(g_stats.getSleepTime() / math.max(1, g_clock.micros() - lastSleepTimeReset), 2) .. "%")
|
||||
statsWindow.debugPanel.luaRamUsage:setText("Ram usage by lua: " .. gcinfo() .. " kb")
|
||||
local adaptive = "Adaptive: " .. g_adaptiveRenderer.getLevel() .. " | " .. g_adaptiveRenderer.getDebugInfo()
|
||||
adaptiveRender:setText(adaptive)
|
||||
atlas:setText("Atlas: " .. g_atlas.getStats())
|
||||
|
@@ -38,6 +38,10 @@ MainWindow
|
||||
text: -
|
||||
anchors.top: parent.top
|
||||
|
||||
DebugText
|
||||
id: luaRamUsage
|
||||
text: -
|
||||
|
||||
DebugLabel
|
||||
!text: tr('Render')
|
||||
|
||||
@@ -89,7 +93,7 @@ MainWindow
|
||||
text: -
|
||||
|
||||
DebugLabel
|
||||
!text: tr('Widgets')
|
||||
!text: tr('Widgets & Objects')
|
||||
|
||||
DebugText
|
||||
id: widgetsInfo
|
||||
|
Reference in New Issue
Block a user