Search Unity

Resolved GetSpectrumData in Editorloop?

Discussion in 'Audio & Video' started by Personuo, Jun 2, 2022.

  1. Personuo

    Personuo

    Joined:
    Mar 19, 2014
    Posts:
    129
    I test the performance impact of GetSpectrumData, I put the 8192 float[] in AudioListener.GetSpectrumData and loop it 1000 times in onEnable, then check it in profiler.
    I found that the performance spikes were counted on the Editorloop instead of the PlayerLoop.

    Is this a bug or expected?
     
    Last edited: Jun 3, 2022