OK, the ROGAlly is still doing a lovely job of being a Windows system, so I can use that as a test-bed for further JSE Optimisationalism.
I started the day with Optimisationalism 5 on v.3gio, running on the ROGAlly with an average time of about 83.2 seconds.
This was a hefty day of coding, today, as I completely rewrote how Variables and Arrays are handled by the engine. Everything used to be key-based, in that I'd say 'JSE_vbl["MyVariable"]' and would leave Javascript to figure things out as best as it can.
Now, however, I've instead built up my own array key, placed variables (and arrays and even line numbers) into an ordered organised numerical system, replaced those values during the parser, and now all the elements should be together, in a group, and not higgledy piggledy all over the place.
I spent literally hours sifting through the entire script, with tons of little tweaks here and there to allow for new ways of doing things, faster array lookups and much more besides.
Honestly, the amount of work was insane, and it took an intense amount of undo/redo/rewrite/retweak to get everything functioning back the way it did, once I was finished.
I'm still not 100% convinced that everything is quite right, yet, so I've been doing a bunch of tests with code both new and old, to stress test everything and ensure it's still doing what it should be doing.
By the end of the day, it was averaging around 82.7 seconds..
Hours of work..
Half a second's improvement.
..
And that was a day that I'd completely and totally wasted.
\o/yeay\o/
Meanwhile, the MacBook M2 8Gb is averaging 55.6 seconds, and the Mac Mini M4 16Gb is flooring 45 seconds, which I believe is the absolute fastest that Optimisationalism 5 can get... If I've done my maths right!
I'm not releasing this version just yet. I need to stress and test and stress test everything to make sure I haven't completely stuffed things up, especially since I completely rewrote how variables work!! That's some might important stuff, right there.
[chorus]
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
No you're not. [beat]
It isn't any faster.
[verse]
You're trying to fix it, but it's not going well.
The improvements you're making are all going to hell.
I think you should give up, and try something else,
Because the thing that you're doing, isn't going that well.
[break]
[chorus]
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
No you're not. [beat]
It isn't any faster.
[break]
[bridge]
All that tweaking,
All those fixes.
Nothing's working.
It's not helping.
Don't give up, though,
Keep on trying.
All your work,
Will soon be flying.
[instrumental]
[chorus]
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
What are you doing?
(I'm making it faster)
No you're not. [beat]
It isn't any faster.
[The church hall is packed with parishioners and locals eager to sample Dave and Greenie's infamous ScrunchCakes. Dave stands behind a table covered in coluorful, bubblegum-pink icing, while Greenie looks on nervously from the side.]
Dave: (grinning) ScrunchCakes 2.0—bigger, badder, and now with a secret ingredient that turns them into rocket fuel!
Steve: Are they caffeinated?
Green: (reassuringly) They're not rocket fuel. Dave's just.. Dave'ing.
Mrs. Thompson: I helped with the new Orange ones.
Vicar: Oh, you're getting involved with the cakes, now, too?
Mrs. Thompson: At first I was slightly worried about the sausage and cake combo, too. But you can't argue with the end result.
Dave: And everyone seems to love the Jungle flavour, too.
Steve: What flavour is Jungle?
Green: He added Um Bongo.
Steve: Sausage, Cake and Um Bongo?
Vicar: It's like Marmite, I suppose. You either love it or hate it.
Dave: [To Mrs. Thompson] Write that down. Marmite..
[Mrs. Thompson jots it down on her clipboard notes]
Vicar: (trying the Orange ScrunchCake) It's like a cross between a doughnut and a space alien!
Mrs. Thompson: That's not exactly what I was going for.
Green: In what way is it a Space Alien?
Vicar: The sausage is sparkly.
Dave: She used a special ingredient that wasn't purple.
Vicar: Gosh.
[More people gather around the table]
Dave: OK, we have an announcement.
Karl: Is it more flavours?
Dave: It might be. Later. But for now, we're announcing the grand open of Dave's Games and ScrunchCakes.
Vicar: Games?
Dave: On May the First, may all the ScrunchCakes be available.
Green: [whispers] I told you to work on the phrasing for that!
Mrs. Thompson: We'll be opening the world's first ScrunchCake store, on Market Street.
Steve: A whole store?
Dave: No, half a store. The other half will be retro videogames.
[Nobody seems in the slightest bit interested in the retro videogames]
Karl: Cool! ScrunchCakes all day, every day!
Dave: And videogames!
Carol: Three cheers for ScrunchCakes!
[Everyone cheers]
Green: Can't argue with results.
[End credits roll]
Views 122, Upvotes 2
Daily Blog
,
Jse
,
Optimising
New games every week!
Places
Archives
Site credits : Site built from the ground up, in php, using Programmer's Notepad 2, and a very bored Jayenkai.
(c) Jayenkai 2023 and onwards, RSS feed
93