Laggy after 5 minutes running


BLOCK:ConstantString
  value = "dasdgdfgdfg"
  => VAR @test
ENDBLOCK

BLOCK:Keycheck
  KEYCHAIN SUCCESS OR
    STRINGKEY @test Contains "dasdgdfgdfg"
ENDBLOCK

LOG "SUCCESS"

WHILE STRINGKEY @test DoesNotContain "9jas9das"
REPEAT 5
LOG "h"
END
END

image

Version 0.1.14

You have an endless loop with basically no delay, so it’s going as fast as possible and will write as many h characters to the log as possible, hence filling up your ram. This is completely normal, in fact there is absolutely no point in doing what you are doing in that endless loop in a normal scenario, or at least not that fast. Add a delay block inside the while loop at least!

1 Like