Possible vblank issue with text getting written to screen
Posted: Sat Aug 04, 2018 3:41 pm
So, I'm translating this simple game and it's pretty much finished, but there's an issue with longer text printing to the screen. I think I know what the issue is, but was hoping to get a second opinion.
Anyhow, I've debugged the game a bit and was able to determine that it's not an issue with the game reading the text data from the ROM. I believe the issue is that due to the extended length, the game runs out of time for vblank and text doesn't get printed as a result.
It should say "Not enough money!" That character at the end is a ryo and a relic from the previous string. Fun fact, the game clears previous strings by just overwriting the old string with the new one. This one's probably a better example.
Anyhow, sometimes it will print no problems and other times not so much.
Anyhow, I've debugged the game a bit and was able to determine that it's not an issue with the game reading the text data from the ROM. I believe the issue is that due to the extended length, the game runs out of time for vblank and text doesn't get printed as a result.
It should say "Not enough money!" That character at the end is a ryo and a relic from the previous string. Fun fact, the game clears previous strings by just overwriting the old string with the new one. This one's probably a better example.
Anyhow, sometimes it will print no problems and other times not so much.