It’s hard to say without seeing your code, but here’s an example of what I mean:
-- bad, because screen updates should happen inside redraw
function key(n, z)
screen.text('hello world')
screen.update()
end
-- correct way
function key(n, z)
redraw()
end
function redraw()
screen.text('hello world')
screen.update()
end
If you’re already doing this, then maybe it’s a bug I’m not sure.