Comments (11)
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)
32 render distance(spikes are debilitating)
Tell me if there are any tests I can contribute.
from phosphor-fabric.
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.
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.
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.
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.
Here is my log from the same issue https://mclo.gs/RFEPmiH
and here is a pie chart
does not occur with starlight instead of phosphor
from phosphor-fabric.
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.
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
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
Then I flew manually between the 4 chunks for 3 minutes, a screenshot halfway through and at the end as well.
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.
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.
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.
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)
- Failed to launch in 1.18.1 HOT 1
- NoSuchMethodError HOT 2
- [Phosphor-0.8.1 | Fabric-0.7.7] Putting a solid block above a beacon at any point disables its light completely HOT 1
- doesn't work in 1.18.2 HOT 4
- curse forge page does not show 1.18.2 compatibility. HOT 1
- Crash when using this mod. HOT 7
- Mod Compatibility with Distant Horizons HOT 2
- Phosphor + Create redstone links causes lighting to completely break HOT 1
- 1.19 HOT 1
- Add 1.19.1 on Modrinth HOT 6
- Not compatible with fabric 1.19.3 HOT 4
- Phosphor and Starlight mods are "incompatible" error HOT 1
- Overlay not working HOT 1
- Add support on modrinth for mc1.19.4 HOT 1
- Not working on my server HOT 2
- dynamic lights problem HOT 1
- Not working with starlight HOT 1
- [Question] 1.20 ? HOT 10
- Mention on the Phosphor Modrinth page that Phosphor is currently not needed on Minecraft 1.20+ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phosphor-fabric.