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
2.0/2.1 Significant SPS loss with water #527
Comments
In order to handle waterlogged blocks from Minecraft 1.13, I added a separate octree for water blocks. This water octree is supposed to contain all water in the world. It seems like the water that is added by the water world rendering mode is not being placed in the water octree and that leads to severe performance problems. |
Yes. The slowdown from water is probably to a large part caused by having to find ray intersections in two octrees instead of just one. Currently the water world option fills in all chunks with a water layer then overwrites them with whatever the loaded chunks contain. I'm considering to switching to just using a water plane instead. This will lead to some undesired effects but it's simpler overall and improves rendering speed. |
@jackjt8 Given the recent performance improvements regarding water and the way water is handled in the octree… Do the numbers look better now? 🤔 |
Updated metrics for a 1.12.2 Amplified world while testing a 16384 Chunk / 16 Region selection. Unfortunately unable to test any of the 2.0beta builds so I am having to infer times based upon past results. I have not got results for the cost of the water plane here but it seems to be minimal.
|
Comparing the performance of Chunky
2.0beta4
vs Chunky1.4.6beta2
performance is expectedly lower however, the extent by which water affects the SPS in2.0beta4
is somewhat alarming.For testing purposes, I generated two superflat worlds in both
MC 1.12.2
andMC 1.13.2
and placed a single block of glowstone at0, 6(?), 0
and two blocks of stone to provide some shadow. In Chunky I set the camera at0, 50, 0
and-90, 0, 0
; Emitters on and at 1000, postprocessing none, CPU load to 50%, and RayDepth to 25 (otherwise default settings).I then made two renders of both the
MC 1.12.2
world andMC 1.13.2
world; one without water world enabled, and one with waterworld enabled[note1]. Below are the renders and the results...1.4.6beta2 no water
1.4.6beta2 water
2.0beta4 no water (See s1.4.6beta2 no water)
2.0beta4 water (would take too long to fully render... stopped at 8 SPP)
[note1] This behaviour is not exclusive to the use of water world. The loss of SPS has been observed in many different cases.
The text was updated successfully, but these errors were encountered: