vram-guild / canvas

Shader-Based Minecraft Renderer for Fabric
GNU Lesser General Public License v3.0
415 stars 40 forks source link

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

Open n643064 opened 2 years ago

n643064 commented 2 years ago

System Informatinon

Other mods and versions installed

How you triggered the behavior

What you expected would happen

What actually happened

Logs and screenshots latest.log

spiralhalo commented 2 years ago

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
...