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"

External trigger for rendering

By default, UE is rendering frames at fixed interval. I want to disable this and programatically decide when the rendering will occur. Ideally, I would like to make a Component that would listen to an external signal and render only upon receiving the signal?

How would I go about doing this?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 18 '18 at 05:16 PM in C++ Programming

avatar image

acajic
6 1 1

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

1 answer: sort voted first

The short answer is "You don't."

You would probably want to reconsider your desire to render on demand. Just pause your gameplay and let the GPU render as it would normally do. Make sure your scene and camera are not moving and it should look like a static render. You can even draw a black rectangle on the screen to cover the view and simulate the illusion that the image is not yet rendered.

I'll try to explain why you wouldn't want to do that:

UE is rendering frames at VARIABLE intervals. Unless you have capped the frame rate which is not the default on Windows. That is the reason you FPS counter it is likely to fluctuate. The rendering itself handled by OpenGL/DirectX/Vulcan and done on the GPU.

Although it is theoretically possible to stall the GPU and issue a render on demand it will require a tremendous amount of effort, coding and expertise (which I don't have). The GPU is not intended to work this way, neither is UE4. There are various synchronization steps that are taken by the hardware, drivers and applications and enormous amount of optimization put in there.

If you give more specific context maybe it will turn out that you don't actually need to render this way.

more ▼

answered Jul 19 '18 at 03:03 PM

avatar image

dZh0
1.3k 6 5 9

(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