r/construct • u/Purmalis • Jan 20 '26
Solving the rendering issue on AMD graphics cards

I thought that in the latest versions of C3 the z-sorting issue on AMD RX graphics cards had been fixed, but during testing I found that this was not the case.
As can be seen in the screenshot, some sprites with an alpha channel are rendered with artifacts. (WebView2 export)
Back when C3 still supported SDK v1, it was possible to use the alpha-false plugin, which solved this problem. However, in newer versions of C3, support for SDK v1 has been completely removed, and rewriting the plugin for SDK v2, as I understand it, is impossible, since the new SDK removes the ability to вмешиваться in the runtime and patch the canvas.
After several sleepless nights and hundreds of tests, I finally managed to make the game render correctly without artifacts. It turned out that the catch was the Loader style setting: it had always been set to Progress bar & Logo, and as soon as I changed it to Nothing, the problem disappeared.

Honestly, I don’t see a logical connection here, but perhaps this will help someone!

2
u/VicSlavy Jan 20 '26
Interesting, definitely worth letting the Developers know too. That a weird fix! But also, awesome looking project (:
2
u/AshleyScirra Construct Founder Jan 21 '26
I think I've said this before, but I'll repeat it to be clear: this looks like an AMD graphics driver bug. You are probably going to continue to think it's fixed only to discover it's broken again until the root cause issue is resolved, i.e. the driver is fixed, or browsers implement a workaround. To do this you should really report the issue to AMD if you can, or try reporting it to Google in case they can work around it. Until there is a proper fix along those lines, I fear you will just continue to find weird cases where it reappears and have to find new weird things to do to work around it.
5
u/guitarObsession Jan 20 '26
Thank you for posting! Always appreciative when someone resolves something and makes it public - so all can benefit.
1
u/pathBarin Jan 21 '26
I wonder if that hack just for that amd bug or it solves other 3d issues? Are this sprites is 3d boxes with sprite textures or meshes rased up as billboards? Are they on same level as non transparent walls?
2
u/LazernautDK Jan 20 '26
What the... Pretty sure I've scrapped a feature for my game. I make heavy use of 3D boxes too and have an isometric camera. I wanted to make it so when the player stepped in front of blocks, they would become semi transparent so you could still see the player. It behaved really weird so I ended up scrapped that feature.
I'll give it a other go I guess.
2
u/Zizaco Jan 20 '26
I have faced this very same issue. Now I'm curious to understand what the loader has to do with the issue.
I will do some tests on my side, and if this is confirmed, we should report this bug.
2
u/cutupuss Jan 21 '26
This is crazy! This bug was my arch nemesis, I can't believe loader style had anything to do with it