-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to fallback to a software/CPU based renderer when GPU is not available? #469
Comments
It should be falling back to CPU rendering (using the warp renderer). There are probably still warning messages just from not finding the Windows 10 calls, and we should clean those up. Could you post the error log? |
Looks like a limitation of druid_shell. |
Interesting. This shouldn't be happening. Here's a related StackOverflow question. Can you try changing |
Sure. |
You'll probably find success using the [patch] mechanism of Cargo. |
Tried, the same error and logs. |
This sounds like a dup of #443. Do you have Windows 7 platform update installed? We're absolutely not targeting anything earlier than that, and are considering raising our minimum version requirements anyway. |
Ooops! I must have amnesia!!! |
One more question. |
I don't think it's a question of CPU rendering, it's because we're using the D2D1 interface which is not supported on pre-platform update Windows 7. And no, we're not going to make that change, as it comes with some really painful limitations, for example the fact that you have to discard and rebuild resources on certain events; note that the rebuild_resources method was originally for this, but should probably be removed now. It's fine to ask, and I'd be happy to make it work if it didn't come with serious drawbacks, but the official answer is that Windows 7 with platform update is the earliest version we support. |
I was not asking to support pre-platform update Windows 7. |
Ah, I misunderstood. Here's the place to patch druid: https://github.com/linebender/druid/blob/master/druid-shell/src/backend/windows/dcomp.rs#L54. Remove |
Hi, i found the solution!!!, Windows 7 SP1 32-bit needs the "Platform Update for Windows 7" patch (Windows6.1-KB2670838-x86.msu), the patch activates and improves the Direct2D library (the d2d1.dll file among other things) with version 1.1, since the one installed in Windows 7 SP1 is present but disabled by default in addition to an outdated version of d2d1.dll, it is worth mentioning that this does not happen in 64-bit versions of windows because it is already activated. I had been fighting with this for 3 days, I have successfully tested it on 8 computers that had the same problem and in various forums like this one or this one they mention the advantages of using it. Note: If once the patch is installed it doesn't work, try the command to force the registry with "regsrv32 C:\Windows\System32\d2d1.dll" to unlock it and even if it gives an error it will work when you try again, it happened to me on 1 of the 8 computers. Note 2: Don't forget to compile using the --target i686-pc-windows-msvc in your cargo command. |
I noticed that the druid apps just not start without any errors when testing with my Window 7 virtual machines (run by virtualbox).
When GPU is not available for renderering, like in some kinds of remote desktop sessions, or virtual machines, is it possible to fallback to a software/CPU based renderer?
The text was updated successfully, but these errors were encountered: