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"

Very bad performance when rotating text render components

Hi there,

I got a bunch of simple text components (about 15) which should always face the player (the white font elements):

alt text

So I made a little blueprint script 'camera facer'. It works like this:

alt text

It simply calculates a rotator depending on the actual camera position.

The problem: It's incredibly slow. My framerate takes a very critical hit as soon the font elements are visible. It runs fine, if I set enable to false which causes the text elements to draw, but prevent them from autorotating.

Even if I include it directly in the parent blueprint (not using a blueprint script component) it's not difference. I also tried to use a timer and to run it only 10 times a second, but even then I have no chance to hold my target framerate anymore.

Engine version: 4.7.6 (binary)

UPDATE: It seems to have something to do with the rotation of the text objects. If I just rotate every text objects at a random vector, it adds about 3 ms of draw calls:

alt text

Why does this perform so bad? Is there any method to speed this up?

Thank you,

spyro

Product Version: UE 4.7
Tags:
more ▼

asked Jun 08 '15 at 05:44 PM in Blueprint Scripting

avatar image

spyro
1.7k 105 116 229

avatar image spyro Jun 09 '15 at 09:15 AM

Another update: I created a new text render material and set it to 'unlit'. Now my whole scene drawcalls went down from 5-6 ms to 3-4 ms while rotating, but still slow.

(comments are locked)
10|2000 characters needed characters left

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