Bug logic delay

    Joined
    Jan 25, 2015
    Messages
    964
    Reaction score
    225
    • Wired for Logic
    • Councillor 2 Gold
    • Legacy Citizen 5
    When i play in a server and use only 3 logic blocks: activator>delay>not>back to activator
    this makes the logic flip between high and low i use this for nice lights.

    here is the problem: i selected around 50-100 lights with this mini logic circuit.
    making a nice flashing thing around my warp gate.
    BUT the server can't take that many logic activeness (exualy almost nothing)
    so it becomes mess starts to get irregular and just laggs but only the logic laggs i do not.
    so i could speed build meanwhile the logic is lagging like hell.
    this messes up the nice effects i really want to get it fixed i dont know how though
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    This is no lag.
    Lag would be a delay in your connection.

    The thing you are talking about is an distance based update threshold.

    Chunks in close range, the one you are in + adjacent ones.
    Dont tie me to exact numbers but its roughly this way:

    0-50m instant update
    50-150m update once per 0,5s (fast flashing gets surpressed)
    150-300m update once per 1s (0,5s clocks get visually stalled, but 1s clocks still work)
    300+ 2-5s depending on distance, load and amount of data to update.

    Once a certain treshold of changes is hit, it updates whole chunks only.
    You can best see the effect with:
    have a 0,5s clock, 1s and 3s clock, build a line of lights (one light per 10m)
    start the clocks individually or all at once, you will see the difference.

    Imagine the light-update stress a 2km*2km light wall could inflict to your video card and literally overload any weaker system if it cannot adapt and work on its own pace to keep up with the light.

    So for this use in position lights, it should be a good thing to use lower frequency blink, like 2s on, 4s off, or something like that look good and work reliable on large distance.

    - Andy
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    On purpose.

    Imagine a planet updating everything once per second, or instantly.
    The amount of updates would stress any computer.
    Beside the fact that updating a single light 10 times could cause a lot of overhead in network traffic, if it gets too much to keep up, it discards the updates and requests the chunk as whole again.
    With using the full possible density you can already stress computers a lot.


    - Andy