This commit is contained in:
Insality
2025-04-26 11:55:57 +03:00
parent ec39242fb1
commit 6d0a853d41
6 changed files with 42 additions and 44 deletions

View File

@@ -182,6 +182,9 @@ function M.assign_layers(gui_resource)
name = layer_name,
})
end
if #gui_data.layers == 0 then
gui_data.layers = nil
end
-- Create a lookup table for faster matching - include both existing and new layers
local layer_lookup = {}

View File

@@ -63,8 +63,8 @@ function M:update(dt)
local current_time = socket.gettime()
local delta_time = current_time - self.previous_time
self.previous_time = current_time
self.collect_time_counter = self.collect_time_counter + delta_time
self.collect_time_counter = self.collect_time_counter + delta_time
table.insert(self.fps_samples, 1, delta_time)
while self.collect_time_counter > self.collect_time do