📜  可以使用没有 ecs 的工作吗? - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:58.590000             🧑  作者: Mango

代码示例1
Yes you can. You can put [BurstCompile] over any IJob and it will speed up this job. 
The speed depends on your task. 
If you want to do some benchmarks, be sure to toggle off the JobsDebugger, the Leak Detection and enable Synchronus Compilation for Burst (otherwise Burst Jobs are compiled asynchronously while you are playing the game). Also it helps to use the fast Mathematics Package in your IJobs and using [ReadOnly] wherever you can.