improve ppu scanline rendering code.