FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.12k stars 143 forks source link

PortableGL #308

Closed egornovivan closed 2 months ago

egornovivan commented 2 months ago

Maybe it’s worth adding an OpenGl3 software renderer to the project? https://github.com/rswinkle/PortableGL

FunkyFr3sh commented 2 months ago

I've added support for software renderers (mesa opengl and swiftshader direct3d9) already. Those can be used as long as they'e named "opengl32.dll" or "d3d9.dll". But they're not useful, the cnc-ddraw GDI renderer is a lot faster

egornovivan commented 2 months ago

I've added support for software renderers (mesa opengl and swiftshader direct3d9) already.

Cool

GDI renderer is a lot faster

Well, GDI is like a Windows-only technology? And shaders probably can’t be implemented there? (although they probably cannot be implemented in opengl software rendering)

FunkyFr3sh commented 2 months ago

I've added support for software renderers (mesa opengl and swiftshader direct3d9) already.

Cool

GDI renderer is a lot faster

Well, GDI is like a Windows-only technology? And shaders probably can’t be implemented there? (although they probably cannot be implemented in opengl software rendering)

GDI is very fast in Wine too. A know a few guys that played with GDI on android for a long time (back then exagear didn't have any hardware acceleration)

Yeah shaders might be a advantage of it, but most of them will not work because of the bad performance