Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 23 Aug 2013 11:50 PM |
This is how to, theoretically, run an infinite loop in 0 delta time. Most people recognize this particular loop as the "lol code god" of Roblox Lua:
while true do end
Well, as we know, if you run this in-game, your game will crash the very millisecond of execution. In order to (theoretically) get this loop to work--even though there is literally no purpose for it--we have to understand why it happens. At first glance, you may think it's obvious: the while loop has no wait time within it, and no code is inside of it. It runs an infinite amount of time within no time whatsoever. It's a paradox. This is mostly correct. There is, however, an underlying deeper logic to it. Not only is the loop attempting to configure, render and execute an infinite amount of null data in a null amount of time, the while loop calls itself. Therefore, the null data is being rendered whilst there is an indefinite amount of encasing surrounding each loop. In other words, it is recursively running itself and initializing itself. What if there were a way to get around this without putting a wait in the loop? The first thing we need to do is optimize Roblox for 100%, fastest performance. Open a new Roblox Studio file, and temporarily change the settings to all of the fastest settings (including graphics; make sure you revert to default after). However, make sure you have a pretty high FPS. In the 'Lua' tab, change the WaitingThreadsBudget, insert either 0 or 9999999. In the GarbageCollection tabs, set the frequency to 1, the GcLimit to an extremely high value, the GcPause to 1, and leave the GcStepMul the same. We think the data initialization is supposed to be infinite in zero seconds. We already clarified that, right? Now, that postulation is invalid. We can actually chunk load it with garbage collection. However, only when there is a GC frequency where lim x->0 (f(x) = gcfrequency) = infinity. This condition can be achieved on, estimatedly, a 512GB RAM computer and a deca-core processor. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 11:58 PM |
| brb: Saving up money for a 512GB RAM chip and a deca-core processor. |
|
|
| Report Abuse |
|
|
th3oracle
|
  |
| Joined: 23 Feb 2013 |
| Total Posts: 448 |
|
|
| 24 Aug 2013 12:00 AM |
That's a good investment. Spend your life savings to prove a theory that accomplishes absolutely nothing. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:01 AM |
Wait... My PC has over 1024 times the RAM of a computer 10 years ago.
If I were to go and store a version of Roblox, could I run it from a flash drive in my computer in 10 years time (offline), and not crash with a while true do end, if I set all the settings right? |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 24 Aug 2013 12:03 AM |
| No, because the scale factor of technology is not consistent as time progresses. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:05 AM |
Empire Earth (2001):
RAM: 64MB (You can get 64GB now) Processor: 350MHz HDD: 450MB Graphics Card: "AGP (4MB) or PCI (8MB) 3-D video card that supports 1024 x 768, 16-bit color resolution"
I think I can manage 512GB in 2023... |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:08 AM |
| @Absurdism: If all else fails, I will learn how to make computer components and build a computer motherboard capable of having 16 32GB RAM chips and 10 CPUs. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 24 Aug 2013 12:08 AM |
Perhaps this is the universe that gets the other probability basis of the qubit, and we never come out with 512GB by 2023. If you can accomplish time travel before 2023 I suggest you do so. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:10 AM |
@Absurdism: Wait until one of two things happen:
1: They make a 512GB/10 core computer. Buy it and do this.
2: You are dying of some incurable disease. Learn to hack, hack some supercomputer and make it use all of its CPU and RAM to doing this.
IT SHALL HAPPEN IF ITS THE LAST THING I DO! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 Aug 2013 12:10 AM |
| Oh please, I could do a while true do Delay(0, function() while true do end end) end without one ounce of lag |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:12 AM |
| Hmm... I wonder if I could weld 8 dual-core 16GB RAM computers together into one superlinkedcomputer... |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 12:14 AM |
One thing I don't understand:
If Windows can isolate the loop so that when it runs it only freezes the Roblox window, why can't Roblox make it only freeze the script that runs it..? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 24 Aug 2013 10:53 AM |
| Yes, because the thread exerts on the entire game, not just the script. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 11:50 AM |
| Script and output, please? |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
| |
|
| |
|
shooter06
|
  |
| Joined: 13 Jan 2011 |
| Total Posts: 7443 |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 24 Aug 2013 02:00 PM |
"In other words, it is recursively running itself and initializing itself. "
I can disprove that.
The Lua VM gives only one instruction (assembly) operation code per loop to initialize it. It also gives a running condition or a limit (for 'for' loops). There is only one loop initialization and a recursion of the blocks of code hierarchically following the instruction set.
When the VM hits the end of the loop block, it does not reinitialize the loop, but only checks the condition and appears makes a JUMP to the beginning of the stack. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 24 Aug 2013 02:22 PM |
@MrNicNac That doesn't mean it's not re-intializing and running itself recursively. My theory is still intact; however, it's not exactly encasing itself. Still, it emulates it. The focal principle that this theory is centralized around is the exploitation of self-initialization. |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 24 Aug 2013 03:02 PM |
"That doesn't mean it's not re-intializing and running itself recursively."
............
Alright then. |
|
|
| Report Abuse |
|
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
| |
|