You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/intermediatelang/optimizer/LocalPlayerContextAnalyzer.java
+52-9Lines changed: 52 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,57 @@
17
17
18
18
/**
19
19
* Conservative, flow-insensitive analysis for values and functions which may
20
-
* depend on {@code GetLocalPlayer()}.
20
+
* depend on client-local native values such as {@code GetLocalPlayer()} or
21
+
* camera state.
21
22
*
22
23
* Optimizers use this analysis as a barrier. False positives only cost an
23
24
* optimization; false negatives could move synchronized work into a
24
25
* client-local control-flow region.
25
26
*/
26
27
publicfinalclassLocalPlayerContextAnalyzer {
27
28
29
+
/**
30
+
* Native return values which may differ between clients during the same
31
+
* synchronized execution without requiring user code to mutate local state.
32
+
* Event responses are synchronized, while handles and UI/audio/visual state
33
+
* made local by user code remain the user's responsibility.
0 commit comments