Don't use anything from System.Reflection
namespace in Update()
loop
#83
Labels
approved rule
Indicates if the new proposed rule has been approved to move to implementation phase
Problem statement
This is disturbingly common in commuinity submitted mods, especially small "that couldn't possibly be the cause of the lag" mods:
Is also disastrous in
LateUpdate()
,OnGUI()
, etc.Often the
System.Reflection
code will be contained in a separate method - I'm not sure if the analyzer can track that down? Such methods often have a signature similar toQ ReadPrivate<T, Q>(T o, string fieldName)
orWritePrivate<T, Q>(T o, string fieldName, object value)
.Proposed solution
No code fix suggestion for this, it just needs flagging to user as a warning.
Docs could mention:
The text was updated successfully, but these errors were encountered: