improve code for tile fetching of ppu rendering.