Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Resolved Too many debug lines added during the frame

Discussion in 'Entity Component System' started by hreintke, Nov 28, 2022.

  1. hreintke

    hreintke

    Joined:
    Jan 6, 2022
    Posts:
    20
    Hi,

    I use 2022.2.0B13, Entities1.0 exp 12 and physics 1.0 exp 12

    I have a ECS program that spawns a large amount of "Cars", depending on the test I am running up to 40.000.
    When I run with a lower number of cars, all works as expected, no debug messages displayed.

    But going high, I get contiously the message :

    Code (CSharp):
    1. Too many debug lines added during the frame (max 10240 can be added from jobs). Some lines have been dropped.
    2. To avoid this please pass "-debug-line-buffer-size <size>" on the command line or add to boot config

    In the console I just have this line continously printed, not one actual debug message.

    I do not have any Debug.Log statements in my code.

    I also checked the files on the "Logs" Directory but there on none which holds any repeating debug messages.

    I have other entities (grid terrain and roads) with much large counts, not causing any issues.

    Is there any way to see what is causing this, or at least see the debug messages itself ?
     
    Last edited: Nov 28, 2022
  2. hreintke

    hreintke

    Joined:
    Jan 6, 2022
    Posts:
    20
    Solved.

    It was caused bij a Debg.DrawLine(..) in the system that handles the car..
     
    RaveBox likes this.