Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.
- Posts: 12040
- Joined: Sat Feb 12, 2005 9:43 pm
- Location: Rio de Janeiro - Brazil
tepples wrote:and it's not even really wasting if you defer computation of some of the written values until that line.
The code I use takes significantly less than a scanline:
Code: Select all
;start setting the scroll before the horizontal blank (48 cycles)
;finish setting the scroll during HBlank (11 cycles)
But yeah, it makes sense to do these operations as the scanline is rendered, and have the final writes fall within HBlank. That way only a portion of the time will be wasted.
- Posts: 2398
- Joined: Tue Jun 24, 2008 8:38 pm
- Location: Japan
I see. I will need to check what was the issue in details once I can remember the code since I didn't touch for 7 months. I was just prototyping at the time so the code is not stable yet.
As for wasting time, this is not much an issue in my case since I only need to do this during screen transition so nothing intensive happen during that phase.
- Posts: 3141
- Joined: Mon Jan 03, 2005 10:36 am
- Location: Tampere, Finland
Broken link in the original post, can somebody repost in an attachment? (Preferably a mod or blargg should edit the original post to include the attachment...)