Fureeish
02/06/2022, 8:50 PMSKIKO_RENDER_API
, IntelliJ, while building Compose projects, prompts me with an error regarding my hardware. To be exact, I am greeted with the following output:
Failed to create DirectX12 device.
Graphics card NVIDIA GeForce GTX 960M is not supported.
Graphics card Intel(R) HD Graphics 530 is not supported.
Graphics card Intel(R) HD Graphics 530 is not supported.
Graphics card NVIDIA GeForce GTX 960M is not supported.
Graphics card Intel(R) HD Graphics 530 is not supported.
Graphics card Intel(R) HD Graphics 530 is not supported.
Which I do not understand. I have done some reserach regarding hardware acceleration and that's where I found the information regarding SKIKO_RENDER_API
.
What's more, when the project built and ran, the sample windows is being shown, but all texts are blurry. I am attaching a screenshot below.
If I define the environmental variable in question, the warnings go away, but unless its value is set to SOFTWARE
, the blur persists.
I have deployed an executable using gradle createDistributable
and asked a couple of my friends to run some tests. In every single instance the resulting application was flawless, i.e., there was no blurry text.
None of my friends is using my exact setup, though. Different CPUs and different GPUs. Because of that I suspect that the culprit may as well be my hardware. Is GTX 960M officially not supported by Compose / Skiko? Where can I read about the supported hardware?
I am also curious about the DirectX12 error. I have it installed (the 12 edition). Did anyone encounter similar error? It may be good to add that when working with Android Studio, the whole emulator is blurry too. Regardless of the aforementioned environmental variable.
I could just stick with SKIKO_RENDER_API = "SOFTWARE"
but in the official JetBrains blog I read that:
For testing and benchmarking purposes, you can also explicitly force your application to use the specific renderer of your choice by setting the corresponding environment variable:And, well, I don't really want my app to suffer from performance penalties, even for testing. Apologies if I misused this channel in terms of things that should and should not be posted here. Any pointers will be highly appreciated.orSKIKO_RENDER_API="SOFTWARE"
. However, please keep in mind that this fallback renderer is significantly slower than its hardware-accelerated counterpart (up to 4 times slower)."OPENGL"
spierce7
02/06/2022, 11:23 PMSKIKO_RENDER_API
, so I assume with doing nothing, I’m already rendering via hardware. Let me check that.spierce7
02/06/2022, 11:29 PMolonho
02/07/2022, 7:07 AMolonho
02/07/2022, 7:10 AMRoman Sedaikin [JB]
02/07/2022, 8:45 AMSOFTWARE
and OPENGL
with blurry text? If you have blurry text with OPENGL
rendering try to update graphics card drivers (for both of them) - it could help. SOFTWARE
rendering has been improved since then and now has decent performance (unless you set SKIKO_RENDER_API
to SOFTWARE_COMPAT
).Fureeish
02/07/2022, 1:53 PMSKIKO_RENDER_API
or set it to OPENGL
.
I have updated the Nvidia drivers, Fureeish
02/09/2022, 6:37 PMRoman Sedaikin [JB]
02/10/2022, 7:12 AMFureeish
02/10/2022, 12:02 PMSKIKO_RENDER_API
environmental variable, the text is rendered correctly. Thank you!
Are there are negative implications of disabling FXAA in regard to Compose, though?Roman Sedaikin [JB]
02/10/2022, 12:14 PMFureeish
02/10/2022, 12:27 PM