Processing data in a looping timer, can other events alter this data while one loop is still processing?

Hi,

I guess this is a fundamental question about processing / queing.
From my understanding the answer is no, but since I’m facing some issues I still want to look for more clarity here.

I have a certain code which runs on a timer (loop). Besides smaller things it mostly updates an array within a forloop.
Then there are two other events within that same blueprint that may alter some variables which are also used within the timerloop. Those events are triggered outside of this blueprint, by the player for example.

Now I wonder if:

  • variables within the timerloop could be altered by the other events while the timerloops code already started to process
  • could the timer potentially start the code multiple times when the processing time would be longer than the loop timer?

Thanks for your input!

Please provide some screenshot, else it is hard to help. It depends where you save your data and if you trigger timers in the loop.

A normal loop, looping over local variables in a method can not be changed from outside and are running in one huge gameloop synchronously