Saturday, March 22, 2025

Turtles All The (goddam) Way Down

Well, it's not turtles, but it was definitely whack-a-mole with some rendering bugs.

Lets start at the top. I was working on the layout for landscape mode to spruce it up to work nicely with the full world layout. Huzzah. Great Success. With a bit of nudging, tweaking and general swearing, I finally got that where I wanted it. Again, Huzzah.

However. As I was testing this, I was switching between landscape and portrait mode in the test device constantly, which was driving me bonkers as each time I did that, it showed me a bug where it wasn't re-rendering correctly. It's the same bug that (much more rarely) is visible when you change the game resolution. So I started chasing that down through the code in the various places where it could have been having the issue. I finally tracked it down to one place and fixed that.

However, fixing it there, although it resolved the issue with it changing resolution, also stopped it rendering properly at all. So then I needed to fix that, so that was digging into rendering engine code, which I've not touched in a long time... but I finally fixed that.

However... fixing it there then broke it working as it should have been when....

However..... then.... however.... when....

I think I spend close to six hours with this really annoying sequence, where fixing on thing broke something else. So, the conclusion to this disgusting ad nauseam was that a straight resolution change, currently nicely works. Changing the phone/tablet orientation does not. It is resolved when the player moves. But this is improved on what it was before. I may start playing this game again tomorrow,as it's all currently fresh, and I think it's actually not far off, I've got a funny feeling that it's once again some threads running ahead of others, as my logging seems to show that it should be re-rendering... but it doesn't seem to do it quite right. So that means, could be a one-line tweak somewhere, could be hours and days of frustration.

Anyhow. Landscape layouts look good. That was the goal for today. Mission Accomplished!

No comments:

Post a Comment

Item Interaction Menus and Screens Done!

I am finally happy with the item menu system, the user interface changes and in general, how nicely these things look. Amusingly, having goo...