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
I noticed that after adding the @EntityID annotation to this component class
final public class EntityClusterChildCom extends Component
{
@EntityId public int parentID;
public boolean top;
}
my game started to generate a lot of garbage, inducing a GC once per minute.
When I removed the annotation, the GC's dropped down to occuring .13 times per minute
visualVM says that all the garbage is Integer
This behavior seems strange and unintentional, so I thought I would let y'all know.
For reference, this component is created 18949 times, Artemis version 2.3.0.
EDIT
I think i boiled the issue down to this specific line of code.
BambooBandit
changed the title
[BUG] @EntityId Annotation creates a lot of garbage over time
[OPTIMIZE] [BUG] @EntityId Annotation creates a lot of garbage over time
May 17, 2022
BambooBandit
changed the title
[OPTIMIZE] [BUG] @EntityId Annotation creates a lot of garbage over time
[PERFORMANCE] [BUG] @EntityId Annotation creates a lot of garbage over time
May 17, 2022
I noticed that after adding the @EntityID annotation to this component class
my game started to generate a lot of garbage, inducing a GC once per minute.
When I removed the annotation, the GC's dropped down to occuring .13 times per minute
visualVM says that all the garbage is
Integer
This behavior seems strange and unintentional, so I thought I would let y'all know.
For reference, this component is created 18949 times, Artemis version 2.3.0.
EDIT
I think i boiled the issue down to this specific line of code.
artemis-odb/artemis-core/artemis/src/main/java/com/artemis/link/IntFieldMutator.java
Line 12 in 51628b3
Is there anything that can be done to remove this typecasting?
The text was updated successfully, but these errors were encountered: