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
EntityEdit#add(Component) first creates a component using reflection and then replaces it with the component provided in argument. Why not just use the argument component directly.
It needlessly creates an extra component to be garbage collected as well as time taken to create that component using reflection. Seems like a simple fix.
Am I missing something?
The text was updated successfully, but these errors were encountered:
EntityEdit#add(Component) first creates a component using reflection and then replaces it with the component provided in argument. Why not just use the argument component directly.
It needlessly creates an extra component to be garbage collected as well as time taken to create that component using reflection. Seems like a simple fix.
Am I missing something?
The text was updated successfully, but these errors were encountered: