Unity-Technologies / EntityComponentSystemSamples

Other
7.23k stars 1.62k forks source link

Poor Performance on Android Highend Device When having a lot of system #201

Open lic1227 opened 3 years ago

lic1227 commented 3 years ago

[https://github.com/Unity-Technologi...Samples/Assets/StressTests/ManySystems_Linear]. I built an Android apk and Windows Build,and found that On PC,1000 System cost about 0.65ms,this is good,but on Android it cost 2~3ms on Snapdragon845 just running Empty System Which is unacceptable in a mobile game.I think this maybe the DOTS Codegen performnce bug(Entitie.Foreach ?) or Entity Query Performance bug.

image

jobinjj commented 2 years ago

How did you managed to build on android? When I installed com.unity.platforms.android package its always giving me this error Library\PackageCache\com.unity.platforms.android@0.10.0-preview.10\Editor\Unity.Build.Android\Components\AndroidKeystore.cs(12,25): error CS1929: 'HierarchicalComponentContainer<BuildConfiguration, IBuildComponent>.ReadOnly' does not contain a definition for 'GetBuildTargetGroup' and the best extension method overload 'BuildTargetExtensions.GetBuildTargetGroup(Platform)' requires a receiver of type 'Platform'

Did you had similar experience in the past?