armory3d / armory3d/armory

Using transparent materials results in bad performance [Deferred Clustered]

Open
#2,264 0 comments 1 reaction 0 assignees View on GitHub
bug material nodes
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

**Details:**
Graphics API: OpenGL
OS: Linux Fedora
HW: AMD RX550 - Ryzen 1600AF

Please, avoid to try this in high-end setup so the frame drop can be noticeable. Not tested on Windows / DirectX but i don't remember this issue when i was using Windows...

[test.zip](https://github.com/armory3d/armory/files/6794424/test.zip)

The **Deferred Clustered** renderer have weird performance issue when i use any value below 1.0 in material opacity input.

I don't know the difference, but if i check the **Blending** option in the material settings the issue don't happens. The issue is specifically with using the **Armory PBR** node.

In **Forward Clustered** this issue don't exist. Look what weird:

**Using transparent material in **Deferred Clustered** (Obs: see the 2.8 ms, it is very low (shouldn't be higher to justify the frame drop?). Even the fps drop showing as 58, i feel it is below 30, but this can happen due to windowed mode)**
![Screenshot from 2021-07-09 21-51-59](https://user-images.githubusercontent.com/63247726/125147371-0f217580-e101-11eb-85cb-36f783dd715f.png)

**Below have image from Deferred Clustered without transparency and Forward Clustered with transparency, both without issues but i don't remember anymore which is any of then :D
Not using transparent material (much more ms and no fps issue, wt***

![Screenshot from 2021-07-09 21-52-21](https://user-images.githubusercontent.com/63247726/125147423-8f47db00-e101-11eb-81d2-867e22bfc720.png)
![Screenshot from 2021-07-09 21-53-41](https://user-images.githubusercontent.com/63247726/125147424-8fe07180-e101-11eb-9920-7dce401496dc.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the report with test.zip on Linux Fedora using Deferred Clustered and a material opacity below 1.0, then compare it with Blending enabled and with Forward Clustered. Done means the transparent Armory PBR material no longer causes the reported frame-rate drop in Deferred Clustered.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
computer-graphics, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.