Either I’m either massively confused about something basic, or there is a glitch with the debug log window. But it sure seems like Event Tick is called twice for every tick. I’m going to assume it’s the former, surely someone else would have reported this bug before now if it is indeed broken…
If it was logging the entry and exit of each function, I would expect to see the Event Tick and Print Strings in a different order, Tick, Print, Print, Tick instead of Tick, Tick, Print, Print.
I’m trying to track down an apparently related massive FPS drop in my app, but I can reproduce this specific behavior with a brand new project. Here I just made a new third party template project, edited a wall sconce to add an event tick and dropped it into the level. Every Event Tick logged in the debug window always comes in pairs with the same time stamps. What is going on?
If you use Now->Milliseconds as the string to print, you’ll see that each message appears only once in the game window. So I think this is a quirk of the debug trace.
Epic guys, is this not a bug??
Hi ,
This does not appear to be a bug. Tick is not based on direct time per se but on the framerate of the machine it is running on. So, for instance, if you are running at points at 120 FPS you can easily have 2 ticks in such a rapid succession that they look as though they happened at the same time. If you are looking for a consistent timeframe for a component to run on, I would highly recommend using a timer to be able to manually select what intervals you want the event to occur at. Additionally, please keep in mind that we prioritize the bug reports, installation, and packaging/deployment sections of the answerhub. When you have a potential bug, please report it to the bug reports section so we will see it. I am moving this thread to the bug reports section.
I beg to differ on this. Put a breakpoint in the Event Tick and you still see two “Event Tick” in the debug log each time the breakpoint is hit.
Unfortunately I am not seeing that on my end. When I toggled the breakpoint and run the project in PIE I see individual numbers for each tick registering at framerate. Do you have any other steps I could take to reproduce this on my end?