x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UBaseManager ticks twice per-frame when you 'Eject'

Not sure if this is intentional, but a colleague recently traced an issue he was having back to the double-ticking of a BaseManager when he ejected from play. He uses the Manager as the hook for his custom AI engine.

Thought this was worth mentioning! Simply create your own BaseManager class (we use them as Managers) and eject during play, you'll see the Game Instance ticks twice per frame often causing severe slow-downs.

Product Version: Not Selected
Tags:
more ▼

asked Feb 07 '15 at 11:43 PM in Bug Reports

avatar image

TheJamsh
820 61 98 140

avatar image Ben Halliday STAFF Feb 08 '15 at 04:11 PM

Hey TheJamsh,

How are you determining that the GameInstance ticks twice per frame when ejected? Can you elaborate on the test case you used so we can reproduce it here? Thanks!

avatar image TheJamsh Feb 08 '15 at 11:29 PM

Hi Ben, I'll ask my colleague how he worked it out ASAP. Thanks!

avatar image TheJamsh Feb 09 '15 at 09:42 AM

Hi Ben, here's the feedback I got:

Basically he has implemented several custom Managers which inherit from both UObject and FTickableGameObject.

The way to trace the double ticking is fairly simple, just insert a breakpoint in the 'Tick' Function of his Manager class and also in the Character class in his level. The Characters tick once for each Character that's in the level, and in regular play, the Manager does as well.

He uses the Manager class to hook into his custom AI engine, but when Ejecting, the Manager 'Tick' function is called twice before the characters, and continues to do so. He traced the issue back to 'Engine.cpp', Lines 1225 and 1020.

Because in 'Eject' mode the Editor and the Game are both ticking, both of those lines call Tick on the Managers, and so the Manager ticks twice.

Hope this helps!

avatar image TheJamsh Feb 09 '15 at 05:10 PM

Additionally to this, the people in question did some more digging, and traced the issue back to an actual logic issue with Level Tick? Doesn't mean anything to me but might help.

Apparently this has been reported before, but hasn't been looked into yet.

avatar image Tim C ♦♦ STAFF Mar 09 '15 at 10:21 PM

Hi TheJamsh,

Sorry for the delay in getting back to you on this issue. I just tried to reproduce the issue that you described, but had some trouble doing so. I have some questions that will hopefully clear things up and allow me to reproduce this.

  • What version of the Engine are you using?

  • Is UBaseManager a custom class that has been created in your project? I was not able to locate this class in the Engine source code.

  • I was unable to build the project code after adding a class that inherited from both UObject and FTickableGameObject. Would it be possible to get the code for one of the manager classes that you have created?

  • Are you certain that the issue is located in lines 1020 and 1225 of Engine.cpp? When I looked at that file it only had 173 lines.

  • Do you happen to know where this issue was reported previously?

Tim

avatar image TheJamsh Mar 10 '15 at 11:12 PM

Hi Tim,

Sorry I was re-posting this message from somebody next to me in the office (buggers are too lazy to report it themselves ;)). I'll ask again tomorrow.

I also may have made a mistake with UBaseManager, I think it should actually have been UGameInstance,.. I'll check again tomorrow!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi TheJamsh,

We have not heard back from you for a few days. Were you able to get the additional information? I will be marking this issue as resolved for tracking purposes, but please feel free to re-open the post at any time with any additional information you may have.

Tim

more ▼

answered Mar 16 '15 at 06:44 PM

avatar image Tuski Mar 27 '15 at 12:33 AM

Tim do you know if this problem is resolved in the newly released 4.7? I checked the patch notes but did not notice change related to this bug. Thank you for your time.

avatar image Tim C ♦♦ STAFF Mar 27 '15 at 12:10 PM

Hi Tuski,

I was unable to reproduce the issue that TheJamsh described. If you are seeing the same issue, would you have any additional information that may help us reproduce the issue and see what is happening?

Tim

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question