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"

Realtime (75fps+) raw image streaming

I've been experimenting with ways to get a 1080p or higher raw (RGBA buffer data) texture stream captured off-thread (10-20ms operation) and streamed on to a UTexture2D for use as a texture on a quad in the game world. This is a VR project so it needs as close as possible 0 impact on frame rates.

I almost have it working well enough for 75fps VR, but I'm struggling to lower the impact on the Game Thread and RenderThread, since Lock MemCopy and Unlock is taking around 5ms for 1080p which is too large percentage of a 13ms frame. Is there a way to prepare a UTexture2D object completely off-thread and just mark it ready to read on the render thread? If not what is the lowest possible impact architecture to achieve something like this?

Product Version: UE 4.9
more ▼

asked Oct 19 '15 at 12:04 PM in C++ Programming

avatar image

726 36 15 42

avatar image getnamo Oct 29 '15 at 12:43 AM

I've gotten nearly acceptable results using the ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER function to do the final memory copy directly in the render thread, but if anyone else has any other great optimizations, I'm all ears!

NB: memory locks can do some weird things to your frame stability. Also stat UnitGraph is king in profiling subtle changes.

(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