MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / update

Method update

src/main/java/net/optifine/DynamicLights.java:70–99  ·  view source on GitHub ↗
(RenderGlobal renderGlobal)

Source from the content-addressed store, hash-verified

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 {

Callers 1

setupTerrainMethod · 0.95

Calls 7

initializeMethod · 0.95
updateMethod · 0.95
currentTimeMillisMethod · 0.80
valueListMethod · 0.80
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected