Giter Club home page Giter Club logo

Comments (11)

ProNoob135 avatar ProNoob135 commented on July 30, 2024 1

Getting this quite severely on both multiplayer and singleplayer, specifically when phosphor is installed on the client(I've tested all four combinations).
Happens with phosphor alone and when used with sodium/lithium/everything else.
It's directly correlated to render distance, at 6 it's essentially imperceptible, while at 32 it's quite frustrating.
I'm running AMD/AMD (Linux), so it's atleast not specific to Intel/NVIDIA.
Happens on both Fabric and Quilt(unsurprisingly)
Low render distance(spikes are there, but not noticeable in gameplay)
2022-08-17_23 24 30
32 render distance(spikes are debilitating)
2022-08-17_23 23 32
Tell me if there are any tests I can contribute.

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Thanks for the report. I'm not really able to reproduce these spikes, so I have to ask you to do some further testing for me.
There are some known issues where better chunk loading speed can lead to fps spikes due to the client having to process larger batches of information at once. These kinds of issues are a bit hardware dependent and hence somwhat inconsistent to reproduce.

Can you please set up a local server and try out all four combinations of Phosphor/Vanilla Client/Server (using the same world, position, etc. so the results are comparable) and post the results here? In view of the mentioned issue, im particularly interested whether toggling Phosphor on the server while using a Vanilla client has any effect.

from phosphor-fabric.

Krimsar avatar Krimsar commented on July 30, 2024

Okay so I finally got around to testing this out. I get no spikes when I'm using a local server (in all combinations) as far as I can tell.

Only seems to be a problem when running the server in-process :-/

edit: I also used 1.19 for the testing

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Thanks for the info. Your results suggest that the issue is not caused by the increased chunk loading speed on the server.
I will have to look into it in more detail, but I can't tell yet when I have the time to.

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Actually, there is some testing you can do.
Please run the client profiler (shift + F3, i.e., the pie chart). During the lag spikes, a notification should appear in the console, saying that something took too long. After closing the game, you can find these in the log file. Can you please post these notifications here? If it's always the same few entries popping up, it suffices if you post those.

from phosphor-fabric.

TheUserCreated avatar TheUserCreated commented on July 30, 2024

Here is my log from the same issue https://mclo.gs/RFEPmiH
20220913174049_1
and here is a pie chart
does not occur with starlight instead of phosphor

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Thanks for your help.
Unfortunately, your log doesn't contain much useful info; most entries are just root. Can you please run the profiler again including this mod (source https://github.com/PhiPro95/mc-fixes/tree/profiler-threshold)? This should improve the sensitivity of the profiler for nested entries.
Also, please run the test over an extended period of time (several minutes), so we can get enough data points to distinguish them from random noise. However, do not try to force lag spikes by flying around too fast, or something like that. We want data on this specific stuttering and not just overall bad fps.

from phosphor-fabric.

TheUserCreated avatar TheUserCreated commented on July 30, 2024

I tried to make this test as reproducible as I could, seed was 1378003740600832149

First, I joined the game and waited a full 10 minutes for things to stabilize
2022-09-16_01 03 16
Afterwards i stepped onto a contraption that teleported me between the same 4 chunks repeatedly and let that happen for 5 minutes, taking a screenshot halfway through and at the end of the 5 minutes
2022-09-16_01 06 27
2022-09-16_01 08 48
Then I flew manually between the 4 chunks for 3 minutes, a screenshot halfway through and at the end as well.
2022-09-16_01 10 23
2022-09-16_01 11 56
And here is the game log; https://mclo.gs/0XU9sFF

This test was done on a different machine than the last one I sent from but I made sure the issue still occurred on it.

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Sorry for the very late response; I have been a bit busy lately.
Can you please run the tests again with this version of Phosphor (Source: https://github.com/CaffeineMC/phosphor-fabric/tree/1.19.x/profiling), together with the above profiler-threshold mod. This adds additional profiling entries in order to further break down light_updates and pin down the issue.

from phosphor-fabric.

TheUserCreated avatar TheUserCreated commented on July 30, 2024

Here you go; the timings for the test were not identical but the world and setup was. Do note the lines showing a change in settings, as I was having trouble reproducing it on a lower render distance this time. It's more severe the higher ones render distance is, at max its almost unplayable when moving between chunks
https://mclo.gs/QM390l3

from phosphor-fabric.

PhiProven avatar PhiProven commented on July 30, 2024

Thanks for your help.
The issue pointed out by these logs is a known weakness of Vanilla's distance propagation algorithm which is currently not tampered with by Phosphor. This primarily shows up when unloading chunks.
However, since you forcefully put the engine under stress by teleporting around all the time, some amount of lag is to be expected. It would be helpful to also get a similar profiler log for the spikes occurring sporadically in more natural situations, like in the original reports. In those cases, the original reports claim a regression of Phosphor vs Vanilla, so the log should hopefully show something Phosphor actually modifies.

Best,
PhiPro

from phosphor-fabric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.