02-16-2022, 05:15 AM
(This post was last modified: 02-16-2022, 05:26 AM by winteriscoming.)
I succeeded in getting my game to run too fast on real hardware, which is great!
I can always make it run slower.
I kept playing around with TREG0 intervals of 2, 4 and 8 and mostly ended up with broken behavior in my hbl.
The main event I needed to have happen was when RAS_Y is 8. Some very important stuff happens then because vbl is responsible for displaying the row of HUD tiles by moving scroll plane 1 down and moving the sprite offset down. At RAS_Y==8, scroll plane 1 and sprite offset go back to what they should be. As far as I was seeing, it was never getting to RAS_Y==8.
Well, I attempted an interval value of 3 and my HUD started behaving again, so it then occurred to me that RAS_Y starts at 0 and I was off by 1, so when it got through 3 intervals, it was at RAS_Y==8.
So I set the TREG0 interval to 9 and have events at RAS_Y of 8, 62 and 98.
udmadac does not seem to be negatively affected by the change to TREG0, at least I don't think it has been. Sounds still play at what sounds like a normal speed to me.
I can always make it run slower.I kept playing around with TREG0 intervals of 2, 4 and 8 and mostly ended up with broken behavior in my hbl.
The main event I needed to have happen was when RAS_Y is 8. Some very important stuff happens then because vbl is responsible for displaying the row of HUD tiles by moving scroll plane 1 down and moving the sprite offset down. At RAS_Y==8, scroll plane 1 and sprite offset go back to what they should be. As far as I was seeing, it was never getting to RAS_Y==8.
Well, I attempted an interval value of 3 and my HUD started behaving again, so it then occurred to me that RAS_Y starts at 0 and I was off by 1, so when it got through 3 intervals, it was at RAS_Y==8.
So I set the TREG0 interval to 9 and have events at RAS_Y of 8, 62 and 98.
udmadac does not seem to be negatively affected by the change to TREG0, at least I don't think it has been. Sounds still play at what sounds like a normal speed to me.

