1) The problem with the GUI and the black bars at the TOP/BOTTOM of the screen
I have described this problem in a previous post (
HERE the link).
The only way I see to get around this problem is to completely disable the WINDOW plane and to draw the GUI with sprites.
Concerning the first part, I have succeeded in disabling the WINDOW plane, which - as you can see in the pictures below - solves the issue of the black bars.
This was per se not straightforward, as being the GUI split between top and bottom parts of the screen the WINDOW plane was dynamically reconfigured mid-frame, which took me some time to figure out.
Concerning the second part, I got to the point where I understand how to hook the routines that handle the sprite table, but I haven't found a satisfying solution to implement this, yet.
This is because this game already uses quite a lot of sprites to avoid tile replication in VRAM (many small sprites rather than few large ones), which sometimes results in sprite flicker.
Thus,
I need to come up with a scheme that minimizes the number of sprites I need for the GUI, while at the same time not increasing significantly the space needed in VRAM.
More on this very soon (I hope).