Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delay with FREX Flawless Frames #2604

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

Moulberry
Copy link
Contributor

Fix delay with FREX Flawless Frames due to dependency between building & visibility.

In order for a chunk to be built, it must be visible.
In order for a chunk to become visible via the graph search, it must have a neighbor that is built.

This dependency results in the graph search propagating visibility one section at a time. Normally this would be unnoticeable, but when using FREX Flawless Frames we want the entire world to be visible ASAP.

The solution in this PR is to simply to do building & visibility in a loop until there are no chunks left to build (but only when flawless frames is on)

This has also been ported to 1.20.6 here, might be useful as a reference if doing another 1.20.6 release: https://github.com/Moulberry/sodium-fabric/tree/fix_flawless_frames_delay/1.20.6

@jellysquid3 jellysquid3 added this to the Sodium 0.5.12 milestone Jul 25, 2024
Copy link
Member

@IMS212 IMS212 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@IMS212 IMS212 merged commit 584d9a1 into CaffeineMC:dev Aug 1, 2024
1 check passed
IMS212 pushed a commit that referenced this pull request Aug 1, 2024
* Fix delay with FREX Flawless Frames due to dependency between building & visibility

* Add iteration limit based on renderDistance
IMS212 pushed a commit that referenced this pull request Aug 1, 2024
* Fix delay with FREX Flawless Frames due to dependency between building & visibility

* Add iteration limit based on renderDistance
IMS212 pushed a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
* Fix delay with FREX Flawless Frames due to dependency between building & visibility

* Add iteration limit based on renderDistance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants