(RenderGlobal renderGlobal)
| 68 | } |
| 69 | |
| 70 | public static void update(RenderGlobal renderGlobal) |
| 71 | { |
| 72 | long i = System.currentTimeMillis(); |
| 73 | |
| 74 | if (i >= timeUpdateMs + 50L) |
| 75 | { |
| 76 | timeUpdateMs = i; |
| 77 | |
| 78 | if (!initialized) |
| 79 | { |
| 80 | initialize(); |
| 81 | } |
| 82 | |
| 83 | synchronized (mapDynamicLights) |
| 84 | { |
| 85 | updateMapDynamicLights(renderGlobal); |
| 86 | |
| 87 | if (mapDynamicLights.size() > 0) |
| 88 | { |
| 89 | List<DynamicLight> list = mapDynamicLights.valueList(); |
| 90 | |
| 91 | for (int j = 0; j < list.size(); ++j) |
| 92 | { |
| 93 | DynamicLight dynamiclight = (DynamicLight)list.get(j); |
| 94 | dynamiclight.update(renderGlobal); |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | private static void initialize() |
| 102 | { |
no test coverage detected