Commit af1168f
fix(core): use synchronous asset loading for AOT metadata (#630)
LoadMetadataForAOTAssemblies used LoadAssetAsync + await per file,
causing N+ frames of unnecessary delay during initialization. Since
this runs before gameplay, synchronous loading is safe and eliminates
the frame-per-file overhead.
Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3846147 commit af1168f
File tree
1 file changed
+18
-6
lines changed- UnityProject/Packages/com.jasonxudeveloper.jengine.core/Runtime
1 file changed
+18
-6
lines changedLines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | | - | |
158 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| |||
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
171 | | - | |
172 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
173 | 185 | | |
174 | 186 | | |
175 | 187 | | |
| |||
293 | 305 | | |
294 | 306 | | |
295 | 307 | | |
296 | | - | |
| 308 | + | |
297 | 309 | | |
298 | 310 | | |
299 | 311 | | |
| |||
0 commit comments