private int GetDynamicLod(int lod, bool isParticle)
    {
        if (!this.m_dynamicLOD || !isParticle || lod == 2 || this.LIMIT_CONFIG == null || lod >= this.LIMIT_CONFIG.Length || lod < 0)
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= this.LIMIT_CONFIG[lod])
        {
            return(2);
        }
        return(lod);
    }
Exemple #2
0
    private int GetDynamicLod(int lod, bool isParticle)
    {
        if ((!this.m_dynamicLOD || !isParticle) || (lod == 2))
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= this.LIMIT_CONFIG[lod][1])
        {
            return(2);
        }
        if (particleActiveNumber >= this.LIMIT_CONFIG[lod][0])
        {
            return(1);
        }
        return(0);
    }
Exemple #3
0
    private int GetDynamicLod(int lod, bool isParticle)
    {
        if (((!this.m_dynamicLOD || !isParticle) || ((lod == 2) || (this.LIMIT_CONFIG == null))) || ((lod >= this.LIMIT_CONFIG.Length) || (lod < 0)))
        {
            return(lod);
        }
        int[] numArray = this.LIMIT_CONFIG[lod];
        if (numArray == null)
        {
            return(lod);
        }
        int particleActiveNumber = ParticleHelper.GetParticleActiveNumber();

        if (particleActiveNumber >= numArray[1])
        {
            return(2);
        }
        if (particleActiveNumber >= numArray[0])
        {
            return(1);
        }
        return(0);
    }