Skip to content
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

Lag spikes when placing/breaking blocks after using /fill #367

Open
n643064 opened this issue Feb 4, 2022 · 1 comment
Open

Lag spikes when placing/breaking blocks after using /fill #367

n643064 opened this issue Feb 4, 2022 · 1 comment
Labels
confirmed Has been confirmed and ready to be worked out

Comments

@n643064
Copy link

n643064 commented Feb 4, 2022

System Informatinon

  • Minecraft Version: 1.18.1
  • Canvas Version: 1.0.2282
  • Operating System: Arch linux, Linux 5.16.1-arch1-1
  • Graphics Card: NVIDIA GeForce GTX 1650

Other mods and versions installed

  • Fabric Loader 0.13.0
  • Fabric API 0.46.1

How you triggered the behavior

  • join world (happens on both singleplayer and multiplayer)
  • use /fill to replace ~1000 blocks
  • place or break blocks within the modified chunks

What you expected would happen

  • placing or breaking blocks wouldn't affect fps (like when using vanilla or sodium/iris)

What actually happened

  • lag spikes when placing or breaking blocks

Logs and screenshots
latest.log

@spiralhalo
Copy link
Collaborator

Confirmation

Can confirm. Lag spikes start happening on breaking or placing blocks after /filling a large amount of blocks. Just to be sure, loading new chunks (via /tp) and then breaking or placing blocks doesn't produce lag spikes.

Condition resolves after quitting/reloading world without quitting Minecraft. Condition doesn't resolve after reloading chunks (F3+A)

image

Log produces similar output to OP. Lag spike detector doesn't trigger before using the /fill command.

[15:11:37] [Render thread/INFO]: Lag spike at terrain_setup - 23,828,000ns, threshold is 16,666,666ns
[15:11:38] [Render thread/INFO]: Lag spike at terrain_setup - 30,804,300ns, threshold is 16,666,666ns
[15:11:38] [Render thread/INFO]: Lag spike at terrain_setup - 18,346,700ns, threshold is 16,666,666ns
[15:11:38] [Render thread/INFO]: Lag spike at terrain_setup - 20,944,200ns, threshold is 16,666,666ns
[15:11:38] [Render thread/INFO]: Lag spike at terrain_setup - 18,419,600ns, threshold is 16,666,666ns
[15:11:38] [Render thread/INFO]: Lag spike at terrain_setup - 22,317,200ns, threshold is 16,666,666ns
...

@spiralhalo spiralhalo added the confirmed Has been confirmed and ready to be worked out label May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed Has been confirmed and ready to be worked out
Projects
None yet
Development

No branches or pull requests

2 participants