Disabled cards rating and classes preloading on startup (lags problem);

This commit is contained in:
Oleg Agafonov 2019-02-09 16:09:07 +04:00
parent e285b2770d
commit c29b68f030
3 changed files with 9 additions and 3 deletions

View file

@ -30,6 +30,8 @@ import java.util.*;
*/
public final class RateCard {
public static final boolean PRELOAD_CARD_RATINGS_ON_STARTUP = false; // warning, rating and card classes preloading can cause lags for users with low memory
private static Map<String, Integer> baseRatings = new HashMap<>();
private static final Map<String, Integer> rated = new HashMap<>();
private static boolean isLoaded = false;