Infinite loop

  • ChargedCreeper
    15th Jul 2015 Member 0 Permalink

    I intentionally made an infinite loop to see how many iterations would happen. It got to a bit over 92 million iterations before TPT recognized the infinite loop and let me stop it.

     

    I did this in console:

    lol = 0

    while true do lol = lol + 1 end

     

    This was on an official TPT. Just for comparison I will try the same thing on a build with various mods.

     

    Official build:

    92 million iterations

     

    Jacob1's mod (also ended faster):

    101 million iterations.

     

    Feynman's mod:

    Stops responding every time.

    Edited 3 times by ChargedCreeper. Last: 15th Jul 2015
  • billion57
    16th Jul 2015 Member 0 Permalink

    Out of curiosity, how are infinite loops even detected?
    Don't tell me jacob1 solved the halting problem

  • mniip
    16th Jul 2015 Developer 0 Permalink
    @ChargedCreeper (View Post)
    @billion57 (View Post)
    It's a timer. Just a delay of something like 5 seconds, so the amount of iterations depends on how many of them can your CPU do in that time.
  • goglesq
    14th Aug 2021 Member 0 Permalink

    My script has 234013 loop repeats total. which I split between 2 loops.

    Edited once by goglesq. Last: 14th Aug 2021
Locked by LBPHacker: necro