These faces may look friendly, but when you click play, they should cause lag using an 'advanced' lag sim If left for long enough, the page should crash What causes the lag? - 5x custom blocks that call themselves infinite times per frame - exponentially creating clones that teleport around the screen, and increase warp and mosaic effects forever - these clones stamp themselves forever - these clones also put their pen down, and up multiple times a second, with a random pen color and size that changes every frame - these clones say hello for 2 seconds, then stop saying it, then say it again - checks if it is touching black every frame (which it is) - adds information to a list every frame - all of the above is copied 19 times - extra sprite creates clones exponentially, and glides around screen while also drawing rainbow path
How much FPS can you get. I have never reached 1, only 0 and infinity. (no idea why it does that though) EXTRA FUN: use CTRL + ALT + Delete and click on task manager, then while looking at task manager, click play, and watch the CPU usage and Memory usage go up to 90-100% usage. (and going back down afterwards) Problems with the Code vs Scratch - Scratch has a 300 clone limit - the list limit is 200,000 items - if Run Without Screen Refresh is on, it has a 0.5 second time limit, on the code before it automattically refreshes, interupting the loop - other annoying stuff (but is probably good for literally any other situation other than actually trying to crash the page) Solutions to these - abusing Run Without Screen Refresh by making a lot of things that are very short can avoid the auto refresh, and make things more laggy - making all these scripts exponentially add clones at the same time can overload the site, hopefully bypassing the 300 clone limit - deleting and replacing clones over and over will never hit the 300 limit - replacing the lists over and over avoids the 200,000 limit - the 200,000 list item limit is per list, so doing tons of lists will override that. - some other stuff