BrunoLevy / learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V
BSD 3-Clause "New" or "Revised" License
2.58k stars 245 forks source link

Doom Nearest Neighbor scaling LUT implementation #107

Closed M4rkoHR closed 1 year ago

M4rkoHR commented 1 year ago

I implemented nearest neighbor scaling functionality using LUTs generated during I_InitGraphics.

This should be just as fast as scaling to 80x50 while keeping the use of the entire display. It's using 256B of memory.

BrunoLevy commented 1 year ago

Thanks ! Merged Pushed a new version, with further optimizations (delta-encoded / shifted resizing tables, avoid per-pixel multiplications, overlap wait SPI / increment pointer)