#Idiomatic foreach schedule

1 messages ยท Page 1 of 1 (latest)

floral bane
#

Is there any plan to make idiomatic foreach to have Entities.ForEach().Schedule() equivalent feature so I dun need to use IJobEntity?

elfin cloud
#

The goal of Idiomatic foreach is to be a nice way to iterate over components on your current thread. As a result, the design goal was never to fake or get around jobs. We tried that with EntitiesForEach, and it ended in long compile times, and people scheduling all the things, even if it would have been quicker on mainthread.

Now, does IJobEntity require slightly more typing? Yes. But the idea is that it should be easy to turn a Idiomatic ForEach into an IJobEntity. Do let us know if you, want better tooling around that! ๐Ÿ˜„

floral bane
elfin cloud
#

Well, RefRW, and all the others that IFE take in do actually work in IJE now, so you can do something along the lines of copy the <...> part into your execute, and then cut all the names in, and bobs your uncle ๐Ÿ˜†

floral bane
elfin cloud
#

SystemAPI inside IJE? not yet, we're currently looking at both side of SystemAPI to see the cost in engineering time when having code that is generated in the way systemapi does it - e.g. how many hours people end up spending on "why does it take a baziliion years to call OnCreate" on my system