createaddition icon indicating copy to clipboard operation
createaddition copied to clipboard

Delay in updating display of energy data on the goggle overlay

Open Tidy-Bear opened this issue 1 year ago • 0 comments

Describe the bug image There is always a delay in updating display of energy data on the goggle overlay, such as Energy Usage and Stored Energy, especially when switching blocks quickly. Take the image above as an example: Start by looking at the left connector with 240 fe/t energy usage, then swiftly switch to the empty accumulator on the right. You will notice that the Stored Energy on the google overlay remains consistent with the earlier data, and have to wait for about less than 1 second to see the correct number.

Maybe try to replace static cache with instance field? https://github.com/mrh0/createaddition/blob/4cf7c58c8168850d31320ee4eef635196d4462a9/src/main/java/com/mrh0/createaddition/network/EnergyNetworkPacket.java#L21

Steps to reproduce Wear Engineer's Goggle. Look at any block with energy data on the goggle overlay. Swiftly switch to the other block with different amount of energy data on the goggle overlay.

Additional context

  • Mod version: 1.2.4d
  • Forge version: any compatible
  • Create version: 0.5.1.f

Tidy-Bear avatar Jul 30 '24 03:07 Tidy-Bear