![]() |
Nothing Found :(
🤡-18- JSE Fixings
Blog
18th April 2025
Uhoh.. I broke something important!!
-=-=- Yeah, seems I messed up a bit of Optimising, there, as the Flip command no longer functioned. .. I mean, as far as broken commands go, that's a doozy, right? How and WhyJavascript needs you to stop and breathe every so often, to give it time to update the screen. I'm not sure why it does this, but if you flood it with none-stop action, you never see anything updated. (On Canvas, at least.. WebGL is likely different) So every so often I let the script stop going bananas, and give it 2 or 3 milliseconds to breathe. JSE won't "breathe" until it reaches an end of line, because it doesn't always keep in memory the bit of a line it's up to, after the breath, and that corrupts some code. The Flip command has an end of line. JSE will go "I've been told to flip, and here's the end of a line, let's breathe." And it'll stop, the screen will update, and then it returns. It also stops if the end of line has been reached, and a timeout has been reached. If a a bit of code takes too long (40 milliseconds), then your code will stop and take a short breath before carrying on. This means that we don't end up in endless loop situations, where the browser gets locked up and we need to Force-Quit the app to get our system back. .. And this happened yesterday!!! I'd moved the End-Of-Line check inside the "quick script" section, which does away with any nasty slow code, as long as there's a run of quick commands it can pull off in one go. Simple maths, simple variable look ups, things like that. We can flash through those because they're not complicated and don't take too long to work with. But here's the thing. Moving End-Of-Line check inside one loop means that when we "Flip" in the other loop, the two halves are so disconnected that the Flip no longer triggers the breath like it's supposed to. It sees the flip, it says "OK, we're ready to flip, now where's the end of the line..... .. ... ... .... ..... .. uhoh!!!" I've now done a slight duplication of the End-of-Line code, as well as adding a new "FStop" variable to ... F'ing Stop when that's flagged up. Everything's flowing much smoother as a result. A few things have had to slow down because of this, but that's more down to the fact that the code's working properly, now!!! OK. Job done. Breathe!! You can test the fixed up v.3gik here. Let me know if you spot anything untoward, or misbehaving in any way. Meanwhile..I think the "fool" game in Shoebox is going to be one of those "Pea under a Shell, shuffle, find the pea" games, because I had a crazy idea to make that a bit more entertaining than it normally would be. I got the Chatbots to fight over the best lines of text to go with the game, and I think it oughta be somewhat amusing. Because otherwise it's just a Pea under a Shell game, and that's not interesting at all. It's the insanity that makes the fun, right!? .. Right?! Hmm.. A.I. CornerLyrics : By me Sound Imported : Generous Stockholm Gadget > Reveal 🔎 : Download | Suno Link Alternative version : Download | Suno Link Sung by Suno ![]() "Cartoon Derek has a complete and total flipping meltdown" by DrawThings / Flux > Reveal 🔎 Views 24, Upvotes 1
Daily Blog
,
Jse
,
Optimising
|