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"

What threads should I be aware of?

I've just came across IsPostLoadThreadSafe function and since the code I'm developing might be thread-sensitive (I'd need to register each thread which is used by a VM), I'd like to know which threads should a normal user encounter? Is it just the "loading thread" and "game thread"? Is there any description of the threads used by Unreal, and how this interaction may occur (e.g. IsPostLoadThreadSafe for the load thread)?

Additionally, I've tried to put a log when returning IsPostLoadThreadSafe but I haven't seen it be called yet

Product Version: Not Selected
more ▼

asked Sep 17 '15 at 08:16 PM in C++ Programming

avatar image

16 6

avatar image staticvoidlol Sep 18 '15 at 08:05 AM

There is another one which might cause problems, the Render thread. Recently ran into an issue with invoking a game thread function in the render thread. Unfortunately I can't add much more details as I don't know much more about this.

avatar image waneck Sep 18 '15 at 01:49 PM

Thank you, @staticvoidlol . I knew about the render thread but I didn't know it was easily exposed to code. Do you have an example of when your C++ code was executed by the render thread?

avatar image staticvoidlol Sep 19 '15 at 10:14 AM

Sure - have a look at this thread where frankmli has graciously provided his code for changing the FOV on a SkeletalMesh. The first answer will be of interest to you, in line 16, where LocalPlayer->CalcSceneView is called (I think that is on the game thread whereas the SkeletalMeshComponent::GetRenderMatrix() is on the render thread).

avatar image waneck Sep 21 '15 at 03:08 PM

Thank you! This was really helpful!

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

0 answers: sort voted first
Be the first one to answer this question
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