Fordi / P2PPU

A NES-like Picture Processing Unit for the Pixel 2.0 by Rabid Prototypes
https://www.kickstarter.com/projects/rabidprototypes/pixel-20-the-arduino-compatible-smart-display
0 stars 0 forks source link

[Free-for-all] render() has to loop through all the sprites in order to correctly render sprites #2

Closed Fordi closed 7 years ago

Fordi commented 7 years ago

[This is a note to self; [Bounty] tag is there because I'd be damn happy if someone were to solve the problem before I get to it]

This imposes a lot of churn per-scanline, especially when there's a lot of sprites. A better way would be to populate some kind of lookup table when calling setSpritePosition. I haven't decided the shape of this yet.