Closed andr-ew closed 3 years ago
ok, here's what I tried:
s.drawloop = clock.run(function()
while true do
clock.sleep(1/fps)
for k,v in pairs(devs) do
if k == 'screen' and (not _menu.mode) then v.redraw() --norns menu secret system
dependency
elseif v.redraw and v.dirty then
v.dirty = false
v.redraw()
end
end
end
end)
in practice it should work but it leads to some weeeird bugginess with trying to enter the menu w/ K1. it kinda gets stuck
ok @csboiling says it's better to use the flag so I'll just go ahead and not do this !
i feel like this is relatively chill to do & it solves issues around value functions getting updated & animations that are mostly limited to the screen anywho