Esempio n. 1
0
    public void InitialCacheStrategy()
    {
        if (XUtility.IsLowMemoryDevice())
        {
            _maxEffectCacheCount      = 15;
            _maxEffectQueueCount      = 4;
            _effectQueueTimeThreshold = 8f;

            _maxBulletCacheCount      = 6;
            _maxBullectQueueCount     = 2;
            _bulletQueueTimeThreshold = 8f;
        }
        else
        {
            _maxEffectCacheCount      = 64;
            _maxEffectQueueCount      = 8;
            _effectQueueTimeThreshold = 20f;

            _maxBulletCacheCount      = 15;
            _maxBullectQueueCount     = 4;
            _bulletQueueTimeThreshold = 20f;
        }
    }