JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.77k stars 1.14k forks source link

DirectX12 Adapter #4020

Closed SudoDios closed 8 months ago

SudoDios commented 8 months ago

Describe the bug Hi. I made a software for Windows. But when I run it, it is very very slow and almost freezes. and gives this error: org.jetbrains.skiko.RenderException: Failed to choose DirectX12 adapter.‍ This project is important to me. What is this error for and how can I fix it?

Affected platforms

Versions

SudoDios commented 8 months ago

I changed renderApi to ‍SOFTWARE. Better than before, but still very slow.

m-sasha commented 8 months ago

What graphics card do you have? Perhaps it doesn't support DirectX 12.

SudoDios commented 8 months ago

Thanks for the quick response. The graphics card of the computer I am testing is Intel HD 4000. And inside Dxdiag write directx12

SudoDios commented 8 months ago

I took a look on the internet. It was written that it supports directx 11. Does it mean that Dircetx is wrongly installed on my computer?

m-sasha commented 8 months ago

Compose on Windows requires DirectX 12 for acceleration. If that's not available, it will fall back to OpenGL, or a software renderer, which are slower.

SudoDios commented 8 months ago

Does that mean there is no good alternative for it? Should the software be slow in systems that do not support directx 12?

m-sasha commented 8 months ago

The non-accelerated renderers work, but they are slow, yes.

SudoDios commented 8 months ago

Thank you for your guidance.

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.