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*
Int. Dave's Games and ScrunchCakes - Thursday Morning
[Dave is rearranging games on the timeline wall when yesterday's customer returns]
Customer: Hey. This game doesn't work.
Green: 24 hours. That's a new record.
Dave: [climbing down from stepladder] What seems to be the problem?
Customer: We tried everything. The iPhone, the Chromebook, even his tablet.
Dave: Well, you see...
Customer: The box doesn't even say what kind of phone it needs.
Dave: It says CPC right there in the corner.
Customer: What's that? Android?
Green: [muttering] Here we go..
Dave: Back in the days of yore, there were many companies that made home computers.
Customer: Like Dell?
Dave: NO, not like Dell. Gawd. Older than that. Amstrad and Sinclair and Commodore.
Customer: Oh, Amstrad. We have an old Sky box. Will it work in there?
[Dave reaches for his timeline wall]
Dave: Look, right here between Manic Miner and...
Green: Dave, just process the refund.
Customer: So it's broken?
Dave: No, it'll work perfectly fine! You just need a computer from the 80s!
Customer: Can I get my money back?
Green: [already printing the receipt] Way ahead of you.
Dave: But while you're here, can I interest you in Count Duckula 2?
Green: David!!
Dave: What?
Green: [to customer] Here's your refund. Sorry about... all of this.
Customer: Thanks. I think I'll stick to the Appstore from now on.
Dave: [calling after customer] But Count Duckula was on TV! Your kid might like it!
[Mrs Thompson shakes her head]
Mrs Thompson: At least you tried, David.
Dave: I knew I should've shown him the timeline wall properly yesterday.
Green: [updating his returns book] I can't believe he didn't wait until Friday. Everyone usually returns things on a Friday.
Dave: Maybe we need a "Not For iPhones" poster or something?
Green: Maybe we need an alphabetical system like normal shops.
[End credits roll]
Views 143, Upvotes 4
Daily Blog
,
Jse
,
Optimise
,
Bug
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
5
Blog - ☀️- 29 - A Curious Oddity (JSE) - AGameAWeek