Skip to content

Tweak default BaseMaterial3D deep parallax quality to improve performance#57776

Closed
Calinou wants to merge 1 commit into
godotengine:masterfrom
Calinou:basematerial3d-deep-parallax-tweak-default-quality
Closed

Tweak default BaseMaterial3D deep parallax quality to improve performance#57776
Calinou wants to merge 1 commit into
godotengine:masterfrom
Calinou:basematerial3d-deep-parallax-tweak-default-quality

Conversation

@Calinou
Copy link
Copy Markdown
Member

@Calinou Calinou commented Feb 7, 2022

On a GTX 1080 in 2560×1440, this reduces frame times by 0.25 ms on a test scene with 4 different materials that have Deep Parallax enabled.

There is a subtle visual difference, but it's not too noticeable on most materials.

Note: This should be re-assessed if #50377 is merged, as we may not be able to reduce the number of steps as much without losing too much quality.

Testing project: https://github.com/Calinou/godot-parallax-test-4.0/tree/performance-test-master

Preview

Click to view at full size.

Before

2022-02-07_21 53 42

After

2022-02-07_22 00 29

…ance

On a GTX 1080 in 2560×1440, this reduces frame times by 0.25 ms on a
test scene with 4 different materials that have Deep Parallax enabled.

There is a subtle visual difference, but it's not too noticeable on
most materials.
@MJacred
Copy link
Copy Markdown
Contributor

MJacred commented Oct 26, 2024

@Calinou: #50377 was cancelled. So could this be merged?

@Calinou
Copy link
Copy Markdown
Member Author

Calinou commented Oct 26, 2024

@Calinou: #50377 was cancelled. So could this be merged?

I've thought about this PR again when working on #97646, but now that I look at it again, the defaults proposed by this PR look bad at high resolutions (especially 4K). This will only become more of a problem as screen resolutions keep increasing in the future.

Therefore, I'll close this for now but this could be revisited later with different settings. Feel free experiment on your own 🙂

@Calinou Calinou closed this Oct 26, 2024
@Calinou Calinou removed this from the 4.x milestone Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants