MinicraftPlus/minicraft-plus-revived

FPS dropping near lava

Closed this issue · 3 comments

Describe the bug
When I approach lava my FPS are dropping drastically until game is almost unplayable.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a lava lake
  2. See fps dropping

Expected behavior
Lava should behave like water... or any other tile. :-)

Screenshots

Lava level on the border of the map 42 FPS
Capture d'écran 2024-05-01 011305

Same world, same level, but in the middle of the lava lake : 5 FPS
Capture d'écran 2024-05-01 011343

Desktop (please complete the following information):

  • OS: Windows 11
  • Game version 2.2.0-dev7
    EDIT : Same issue with version 2.2.0

Additional context
The problem ocurs on all of my worlds.

It would appear that this bug was fixed for Water tiles but someone forgot to fix Lava tiles too

After my testing, I spotted out that the issue is related to light rendering.

The number of lighting circles can go over 700, so it is a quite tricky issue to resolve.