4 ms·
Well, that's interesting. The state of desktop OpenGL on Windows is pretty awful at the moment. The antiquated WGL APIs make it difficult to control when your a
by rossy 10y ago
Well, that's interesting. The state of desktop OpenGL on Windows is pretty awful at the moment. The antiquated WGL APIs make it difficult to control when your application enters exclusive fullscreen mode, and as far as I know, it's impossible to control latency or get any kind of presentation feedback with them. You also can't make UWP apps that use WGL. Google's ANGLE, which is used to implement WebGL in Chrome and Firefox, is a lot better, and it lets you do fancy things like render OpenGL ES content to a D3D11 texture or to a DirectComposition surface. If Microsoft open-source Edge's WebGL engine (currently it seems like only the GLSL->HLSL translator is open-sourced,) it could become another modern way of using GLES on Windows.
Source: We rely on OpenGL to render video in mpv, and we are currently switching from using a WGL context by default to using ANGLE. Maybe this could be a third option?
- MikusR 10y agoSo this is false? https://msdn.microsoft.com/en-us/library/windows/apps/dn440963.aspx https://msdn.microsoft.com/en-us/library/windows/apps/dn4409...
- rossy 10y agoWell, that would use a WebGL canvas and Edge's GLES renderer, not WGL and desktop GL. (WGL refers to Microsoft's equivalent of GLX and EGL here, not WebGL.)
- pjmlp 10y agoSo what is preventing you to use Microsoft's port of Angle? https://blogs.windows.com/buildingapps/2015/08/04/angle-for-windows-now-available-on-nuget/ https://blogs.windows.com/buildingapps/2015/08/04/angle-for-...
- rossy 10y agoPresumably nothing, if I was writing a UWP app. All I said was that WGL didn't work in UWP apps, not that there wasn't any alternatives. It's actually pretty interesting that Microsoft maintain a fork of ANGLE for this purpose when they have their own GLES implementation in Edge. I guess (before now) it was easier for them to modify ANGLE than to open-source their own work.