I found very strange bug. It reproduced only on windows.
When I disabled objects with spine animation - gameobject.update takes too many frame time.
Spawn GO with spine animations only:
msg.post(object, "disable")
code:
local personages = {}
local function create_pers(self, position)
table.insert(personages, factory.create("#pers1_factory", position))
end
function init(self)
for i=1,10 do
create_pers(self, vmath.vector3(math.random(0,640),math.random(0,360),0))
end
msg.post(".","acquire_input_focus")
end
function on_input(self, action_id, action)
if action_id == hash("click") then
for i=1,10 do
msg.post(personages[i], "disable")
end
end
if action_id == hash("no_click") then
for i=1,10 do
msg.post(personages[i], "enable")
end
end
end
I have a test project.