UE4 Stimulus Timing Optimization

Working on an optimization project for a neuroscience lab. I have a photodiode detecting a light that should be flashing every 1s in UE4. I’m finding however sporadic jumps in the time (+/- 25ms) between consecutive flashes. My goal is to make this flashing within 5ms of the expected time. Is there any way that anyone knows of to optimize this? I’ve tried parallelization, changing the rendering settings, getting a higher fps monitor, but so far this is the best I can do.

Any ideas would be really appreciated.

Thanks!

-HSM

Hey @HybridSpaceMan

Not sure if Unreal, correct me if I’m wrong, is good for exact timing for this sort of application. Like all 3D engines, software and computers, many things cause lag, that said you do have room for manoeuvre but 25ms is very small.

However how are you creating the timer and updating the flash? if its critical it should be considered using the event tick. You can even create the objects event tick to be 1 second. But im not sure how precise this actually is.