New games every week!
☀️- 29 - A Curious Oddity (JSE) Blog
29th May 2025
One little quirk is starting to pop up, and the more I look into it, the more apparent it is.

-=-=-

We're back to "Bugs that only seem to happen in Safari" territory again, and this time it's something to do with the controller code.

I've now got "Falling Lemmings" running at 800 lemmings, 10 floors, without much of an issue. It just about hits 57fps, steadily, which is right on the cusp of it being too much of a struggle for JSE to cope with.
This means that every little possible slow-down can be triggered really easily, and apparently one of those is the controller code.



The dip in framerate shown here happens when you hold down a controller button, be it a physical controller, a touchscreen button, or a keyboard button.
If I hit any key that isn't remapped as a controller button, then there's no slowdown, so I'm pretty sure this is a controller code problem.

The thing is, the Falling Lemmings program doesn't actually use the controllers, so whatever's triggering the slowdown must be somewhere else in the code.

I spent HOURS yesterday, digging through the controller code, and have actually managed to optimise a number of bits, and yet. still.. this bug remains.
And it's only in Safari.
This is almost identical to the First-Run bug, in that Safari seems to be doing things so differently that these weird errors are coming up.

Anyway, I spent way too much time trying to figure this out, yesterday, and didn't really end up getting anywhere.
There's been a lot of tweaking, a fair bit of undo'ing, but really not an awful lot of progress being made.

I think I might need to try running things with Strict mode on again, to see if anything obvious gets dredged up.
*shrugs*

Code is quirky, sometimes.


A.I. Corner


Lyrics : By me
Sound Imported : Fanatically Zippy
> Reveal 🔎
: Download | Suno Link

Alternative versions
: Download | Suno Link

: Download | Suno Link
Sung by Suno


"Cartoon Derek chases a bug out of his house with a large broom" by DrawThings / Flux

> Reveal 🔎
Views 142, Upvotes 4  
Daily Blog , Jse , Optimise , Bug
New games every week!
Site credits : PHP script, Blog posts, Games, Music, Pixelart, Poems and More : Jayenkai
(c) Jayenkai 2023 and onwards, RSS feed 5

Blog - ☀️- 29 - A Curious Oddity (JSE) - AGameAWeek