Very bad performance when rotating text render components
I got a bunch of simple text components (about 15) which should always face the player (the white font elements):
So I made a little blueprint script 'camera facer'. It works like this:
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:
Why does this perform so bad? Is there any method to speed this up?
Follow this question
Once you sign in you will be able to subscribe for any updates here