I'm getting a little frustrated with BGFX. I have a basic set of blit shaders wired up in MAME and on my Windows 7 box at least, only the D3D11 backend works. OpenGL crashes. Vulkan and D3D9 display nothing. Isn't the point of a rendering abstraction library to avoid this crap?
-
-
Vastauksena käyttäjälle @TheMogMiner
D3D9 should work, but maybe drivers support it less for newer cards now, or BGFX's D3D9 back-end is bad, or both, I don't know. OpenGL drivers are broken everywhere, it's a joke API, and Vulkan support on Windows 7 specifically is probably bad. So for Windows 7, stick with D3D11.
2 vastausta 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjille @relativetoyou ja @TheMogMiner
> Isn't the point of a rendering abstraction library to avoid this crap? Two things at play here: BGFX is a garbage library and GPU drivers are mostly bad, so you have to use whatever works. For Windows 7, Nvidia cards and D3D11 is a safe bet.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @relativetoyou
I've been aware of the latter, and I'm slowly coming to terms with the former, particularly due to the horrific amount of lag it adds. But what do you suggest for an emulator that needs to run on OS X, Linux, Windows Vista upward, and ideally also GLES targets?
2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @TheMogMiner
I'd suggest to use whatever is the official rendering API for that particular OS was/is. For Vista/Windows 7, it's D3D11 w/ feature level 10, on OS X there is no silver bullet, the official API is Metal now, so if you want to support older macs you can try a limited subset of GL2
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @relativetoyou ja @TheMogMiner
⚕ 🦚 🌲 🦅 ⛈️ uudelleentwiittasi
For GLES devices, only core GLES 2 is sane, aside from fake Chinese phones with completely broken drivers for which you can only use software rendering, and for Windows 10 I'd still suggest D3D11: https://twitter.com/redgpus/status/1183811786866413571 …
⚕ 🦚 🌲 🦅 ⛈️ lisäsi,
Tämä twiitti ei ole saatavilla.2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @relativetoyou ja @TheMogMiner
For Linux, you have to use Vulkan, more specifically a sane subset of Vulkan, or you can ask users to use Steam's Windows/D3D11 proton emulation with your Windows binaries.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @relativetoyou ja @TheMogMiner
Wait, no, you don't have to, if you just want to draw triangles on screen and nothing else, use my REI library, it's really good if you're fine with writing shaders in assembly:https://github.com/procedural/rei
2 vastausta 0 uudelleentwiittausta 0 tykkäystä
Thanks, I'll have a look at it. Shader assembly is a bit of an awkward thing, but given the number of assembly dialects I've managed to learn over the years, I think it'll be fine.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.