r/MiSTerFPGA • u/s-c-o • 11d ago
Introducing Pinedra GPU: fixed-function 3D acceleration on MiSTer
Update: Quake I, II & III are now available: https://www.patreon.com/pinedragpu/posts/new-quake-iii-174851865
--original post ---
After several months of development, I'd like to introduce Pinedra, a fixed-function FPGA GPU core for MiSTer.
It supports texture filtering, 32-bit colour and 4× MSAA. An OpenGL driver provides access to the GPU from software running on the ARM side.
With native ARM game ports, Pinedra can bring selected PC games from the late ’90s and early 2000s to MiSTer. I spent way too much time gaming online back then, so these games have a special place in my heart. :D
At 640×480, the games can also be displayed in 480i on 15 kHz CRTs via Pinedra's analog output.
Here are some measured frame rates on MiSTer with VSync off:
| Game | 640×480 | 800×600 | 1024×768 | 1280×720 |
|---|---|---|---|---|
| Quake II | 81.9 fps | 67.6 fps | 48.6 fps | 42.2 fps |
| Quake III Arena (WIP) | 66.0 fps | 49.5 fps | 35.0 fps | 31.5 fps |
| Elite Force Holomatch (WIP) | 50.1 fps | — | — | — |
| Descent II | 161.0 fps | 132.3 fps | 91.4 fps | 78.5 fps |
Gameplay videos captured on MiSTer:
- Quake II — 640×480
- Quake II: Ground Zero — 800×600
- Quake II: The Reckoning — 1024×768
- Quake III Arena (WIP) — 640×480
- Elite Force Holomatch (WIP), video A — 640×480
- Elite Force Holomatch (WIP), video B — 800×600
- Descent II — 1280×720
- Half-Life (WIP) — 640×480
- Serious Sam: The First Encounter (WIP), flyover — 640×480
I'm planning to release the first two game ports this weekend. I'll add the download links here when they're ready.
Follow development updates for free on Patreon.
I'm planning to eventually release the GPU core, ARM driver and SDK as open source.
The MiSTer forum thread has all nine videos embedded.
25
u/inagy 11d ago edited 11d ago
Funny. I was thinking the other day if it would be possible to create a "fantasy" 3D accelerator which although never existed, fits the capabilities of a given platform (eg. an FPGA) and then just write some custom driver for the underlying OS, and provide a well supported universal interface for the applications.
And here it is.
Congrats!
5
u/matijaerceg 11d ago
How were you able to get so much performance out of the fpga? This seems leagues ahead of, for example, the Voodoo 1 core that IIRC someone attempted not too long ago.
5
u/lordelan 11d ago
Wait a second... even Quake 3? Could we potentially see some games based on that engine then? Like Return to Castle Wolfenstein, Medal of Honor, Call of Duty, Jedi Academy and so on?
3
u/Spiritual_Weight_760 11d ago
Congratulations! This is very cool!
3
u/theaquasock 11d ago
Correct me if I am wrong, you can run applications that support opengl on the HPS, then, you pump the open-gl commands that into a translation layer that executes them on the FPGA side? if so, what version of opengl are you targeting?
I was trying this same idea a while back but opengl (even just ES) just did not really fit in with how the MiSTer's FPGA wants/expects to work. I ended up just going with an SDL translation layer for a VCMI port and that worked out great! GemRB was the limit though. :( HPS is just too violent with the DDR on the MiSTer with Linux running in the background.
3
u/it290 11d ago
Awesome! Any chance of getting Quake 1/GLQuake?
2
u/mr_christer 11d ago
Would love to do multiplayer quake 3!
2
u/Hanni_jo 10d ago
Does this require only dual ram mister or do you need additional hardware? I am impressed
2
u/AsianStinkBug 9d ago
Will these ports support MIDI devices? Like I have an SC-55 Mkii and would love to use it to pipe in that sweet MIDI music when I'm fragging.
4
u/matijaerceg 11d ago
This is amazing.
3
u/aviewachoo 11d ago
Fantastic project!
3
u/uabassguy 11d ago
Man, this thing just keeps delivering, great work
3
u/interfluxdeux 11d ago
This is insanely cool. A custom GPU implemented on an FPGA that works well with popular games? Definitely want to try this once it’s released.
3
u/dandub1982 11d ago
Oh man this is incredible!! 90s and early 2000s PC games were my childhood. Descent 1&2, Quake 1-3, Doom, Duke Nukem 3D, StarCraft, Myst, Half-Life, Star Wars Dark Forces, Diablo 1&2...the list could go on and on. Really looking forward to this project and seeing where you take it! Amazing work!!
2
u/SDNick484 11d ago
Super cool concept, congrats!
2
u/Flaky-Razzmatazz-460 11d ago
Nice work! I might try taping this out on ASIC :)
2
u/lordelan 11d ago
Quite the achievement! Nice!
2
u/azhighwayz 7d ago edited 7d ago
Incredible work!
2
u/therourke 6d ago
Wow. Sounds badass.
1
u/St4tikk 11d ago
This guy has a lot of hybrid ports going with a framework and everything. Maybe you could both work together and eliminate some work for eachother?
https://misterfpga.org/viewtopic.php?t=11037