LiteEntitySystem icon indicating copy to clipboard operation
LiteEntitySystem copied to clipboard

Add AOT support

Open MingHuiLiu opened this issue 1 year ago • 3 comments

Add AOT support

MingHuiLiu avatar Feb 19 '24 15:02 MingHuiLiu

AOT support currently will require rewriting almost everything to SourceGenerators. This is a lot of work and time for feature that doesn't add much currently and in some places it works slower. IL2CPP supported for Unity.

RevenantX avatar Oct 24 '24 10:10 RevenantX

AOT support currently will require rewriting almost everything to SourceGenerators.

Can you elaborate further? I thought that LiteNetLib and LiteEntitySystem were pure C#. Do they rely on some native libraries?

Odex64 avatar May 13 '25 13:05 Odex64

@Odex64 LiteNetLib yes. LiteEntitySystem uses alot of Reflection that partially doesn't supported by AOT and specific IL hacky things (ILPart/RefMagic.il) that doesn't work in AOT build too.

RevenantX avatar May 13 '25 13:05 RevenantX