Jump to content

Liquid duplication when falling and pressing another liquid simutaneously


kurosolo
  • Branch: Preview Branch Version: Windows Pending

Just gonna present a simplified situation for demostration. Original reference:

 

 


Steps to Reproduce

1. Load report.sav and unpause. Could use Alt + - in Debug mode to observe the interaction between saltwater and water in one tick:

1125a246bb956f13914cb309e200fbbd.png.2454b5f3e44874257d4a42a1e913ed69.png

a6caf697bb406c12bd54f892e00b0d8a.png.f7cfff8dd61c309b0013305794588e9d.png

2. The interaction above creates 1/8 (12.5/100) mass from the falling saltwater.

report.sav

  • Haha 1



User Feedback


Well that certainly is easier to debug, thank you. The logic for displacing a neighboring tile of a smaller amount of liquid is using the mass of the tile in the previous frame and failing to notice that update liquids has already committed the same mass to falling into the cell below during the same tick.

  • Spooky 1

Share this comment


Link to comment
Share on other sites

On 3/8/2025 at 4:15 AM, HarryMcCleave said:

The logic for displacing a neighboring tile of a smaller amount of liquid is using the mass of the tile in the previous frame and failing to notice that update liquids has already committed the same mass to falling into the cell below during the same tick.

Satisfied to see the bug fixed, and here's a similar situation while two cells of the same liquid are falling during the same tick:

In that case, the mass above is converted to 1/8 of the mass below. The save file is uploaded for reproduction.BeforeAfter

report.sav

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...