[MC-1692] Excessive lag on lamp de/activation across chunk borders Created: 01/Nov/12  Updated: 23/Oct/18  Resolved: 23/Oct/18

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w06a, Snapshot 13w10b, Minecraft 1.5, Minecraft 1.5.2, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w38b, Minecraft 13w38c, Minecraft 13w39a, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 1.7.10, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 14w33a, Minecraft 1.8, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre4, Minecraft 1.9 Pre-Release 1, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w50a
Fix Version/s: Minecraft 18w43a

Type: Bug
Reporter: Martok Assignee: [Mojang] Georgii Gavrichev
Resolution: Fixed Votes: 59
Labels: client, rendering

Attachments: PNG File 2012-11-01_19.52.10.png     PNG File 2013-03-06_16.47.39.png    
Issue Links:
Duplicate
is duplicated by MC-7579 A few blinking redstone lamps cause l... Resolved
is duplicated by MC-11137 huge delay and lag on redstone lamp d... Resolved
is duplicated by MC-28280 Redstone lamp Off lag Resolved
is duplicated by MC-28336 Redstone bug makes lag issue Resolved
Relates
relates to MC-126518 Redstone or lighting updates causing ... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

See this video by Teekeks for a demonstration of this issue.

Description

Redstone lamps turning on and off cause an unusually large amount of FPS lag when on/near chunk borders. While there is still some (expected) lag in the middle of a chunk, the amount on chunk borders is significantly higher.

Reproduction

  1. Enable chunk border rendering with F3+G
  2. Enable the lagometer and debug profiler by pressing Alt+Shift+F3.
  3. In the middle of a chunk, build an 6x6 pad of redstone lamps, and place redstone dust on those lamps.
  4. Connect those lamps to a fast clock (such as 2 repeaters pointing into each other)
  5. Observe that there is a slight lag spike each time the lamps turn on.
  6. Disconnect that system, and then build a similar 6x6 pad at the intersection of 4 chunk borders (such that there is a 3x3 area in each chunk)
  7. Connect that system to a fast clock
  8. Observe the much higher FPS drop

Notes

  • The profiler node "scheduledExcecutables.checkLight.checkedPosition < toCheckCount" is the most time-consuming one when this issue is in effect.


 Comments   
Comment by Piyotato [ 16/Dec/17 ]

I've experienced it on every snapshot, yes.

Comment by Fabian Röling [ 12/Dec/17 ]

Did you really try all of them? Even the ones that aren't available in the launcher anymore?
Actually, it doesn't matter, all versions are already marked as affected.

Comment by Piyotato [ 12/Dec/17 ]

Can confirm for all 1.13 snapshots.

Comment by [Mod] bemoty [ 08/Aug/17 ]

Can confirm for 1.12.1.

Comment by Lena During [ 15/Feb/17 ]

I investigated a bit on this bug.

It seems to correlate with the debug Node "scheduledExcecutables.checkLight.checkedPosition < toCheckCount", which takes up >50% of the entire frame time when the contraption goes over a chunk border.

A Example of this can be found here: https://www.youtube.com/watch?v=af9Cgck1zGA

2x the same setup, once within one chunk, once on a chunk border.

Comment by bestucki [ 30/Aug/16 ]

I have the same problem with 1.10.2.

30 pistons de-/activated by redsone: no lag
30 redstone lamps de-/activated by redstone: lag
15 redstone lamp pairs de-/activated by redstone: bigger lag

The lag caused by deactivating is quite bigger than by activating.

Comment by Fabian Röling [ 12/Jun/16 ]

Might this be MC-81098? Redstone dust is used in the setup mentioned in the description and it causes lag.

Comment by Orbit Storm [ 26/Apr/16 ]

Hopefully this isn't redundant information but I wanted to add some clarification from my own findings:

  • This issue affects any redstone circuit that is powered on/off by a switch or redstone clock and does not apply to just redstone lamps (for example: a simple pulsing circuit to dispense "garbage" into lava using two repeaters on 4 ticks each still lags).
  • As the OP claims, this applies ONLY to circuits being powered OFF.
  • This applies to both singleplayer AND multiplayer servers (Vanilla and Spigot alike).
  • Java versions as early as v1.8.0_25 and as recent as v1.8.0_77 are affected.
  • This DOES produce a momentary frame spike, dropping as low as 30fps from 120fps.

I hope this affords a bit more useful information and look forward to a fix.

Comment by Alex Campbell [ 02/Apr/16 ]

Confirmed for 1.9.2.

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by KingSupernova [ 08/Nov/14 ]

Yeah, I hope so. I really liked that.

Comment by kbk [ 08/Nov/14 ]

This ticket is still valid for 1.8.1 pre4.
'Lamps' in last Isaac's statement and, probably, in description should be changed to 'redstone components', most of which have had their lighting disabled some time ago for the very reason this ticket exists. As for lamps, lighting is their essential function and obviously could not be disabled. I suppose when this gets fixed, wires and comparators should again become able to emit light as well.

Comment by KingSupernova [ 27/Oct/14 ]

Possible, but this type of lag seems to be localized to lamps. Other small scale lighting updates, like breaking glowstone, don't make this happen.

Comment by [Mod] Sonicwave [ 26/Oct/14 ]

Could be related to MC-11571.

Comment by KingSupernova [ 22/Oct/14 ]

I can confirm this in 1.8-pre2.

Comment by kbk [ 13/Aug/14 ]

Lighting is still a bit laggy in 14w33a.

Comment by Omnimetatron [ 17/Feb/14 ]

Can confirm this issue in 14w07a.

Comment by Galaxy_2Alex [ 21/Jan/14 ]

Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Josiah Roberts [ 05/Dec/13 ]

I am having this issue in 1.7.2. Short-term severe lag, only when the lamp array is turned off.

Comment by Omar Saad [ 26/Sep/13 ]

this has been a bug for so long, can somebody at least create a fix for now? would be much appreciated

Comment by kbk [ 26/Sep/13 ]

Not really as bad as it was back then in 1.4, but still noticeable in 13w39a. I experience like -20 fps and laggy rendering when I turn on the clock similar to the setup on the second screenshot.

Comment by [Mod] CubeTheThird [ 26/Sep/13 ]

Is this still a concern in the current Minecraft version 1.6.4 / Launcher version 1.2.5 ? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Chris Dusto [ 02/Apr/13 ]

I cannot reproduce in 1.5.1 - I have a lighthouse with a blinking lamp (in fact, 8 lamps). No lag between if it is on or off (I have a switch to turn off the lamps)

Comment by kbk [ 19/Mar/13 ]

In 1.5.1 lamps alone (like in reporter's setup) are not affected by this issue. Contraptions with lamps powered off repeater clocks and/or through sets of repeaters are affected though, as are repeater/comparator oscilliscopes or light-emitting devices of similar complexity. Moreover, such contraptions can induce a lagging that is even more severe when player stands exactly 10 chunks away from said contraptions.

Comment by Simon Welker [ 10/Mar/13 ]

I can more than confirm this. I built a pretty big light machine and it works great, but most things I try to do with it can't go smoothly live thanks to this bug alone. One part of it turns on in 1 second but takes about 5 turning off.
But it's already noticeable from 9 redstone lamps on. This should be fixed urgently!

Comment by Martok [ 06/Mar/13 ]

Very true, and a much simpler test than my original build. I have added a screenshot of an automated setup for reference.

The issue persists in 13w10b, tagged accordingly.

Comment by Omar Saad [ 06/Mar/13 ]

The lag happens only when it is deactivated, just make a line with lamps and a lever, flip lever on: pretty expected, all turn on. flip lever off: crazy lag spike and huge delay

Generated at Sun Jan 12 11:55:19 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.