Hello,
I have a mass fragment that processors only read data from, and I need to occasionally modify it from blueprints. What is the best safe way to modify the fragment (to make sure no processor is just reading from it)?
I could create and run a processor to update a single entity (I am assuming that a processor reading from fragment and a processor writing to it cannot run at the same time, and the mass executor will ensure this). I imagine there is significant overhead doing this.
Or I could create my own global lock for this fragment, however this seems to bypass all the access checks done by mass.
I know I could just create a deferred command, but I would really like to avoid deferring these changes if possible.
Or can I just ignore this and hope for the best? I noticed there are uses of GetFragmentDataChecked in some mass plugins, and there is often no safety check. I thought that processors tasks are ran at basically random times during the frame, and concurrent access can happen, or is that not true?