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"

Performance implication for actors out of view

How much is the cost of having an actor in the game which is so far from the player that it is almost invisible? Is it better to remove such an actor and respawn it when needed?

Product Version: UE 4.7
Tags:
more ▼

asked Aug 23 '15 at 06:18 PM in Rendering

avatar image

Atin123
3 3 5 5

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

1 answer: sort voted first

If you have visibility culling enabled in your project (HZB occlusion culling is on by default for desktop projects), then offscreen or hidden actors will not have an impact on rendering speed, except for the check to see that they shouldn't be rendered (which will be very low on a per-actor basis).

However, game logic will always run on your Actor. If you have many Actors in your game world that have a Tick node being used in its Blueprint (or if it's a C++ Actor and has ticking enabled), then your game still has to run the code to make it tick. Depending on what you're doing, perhaps a few hundred ticking Actors will not be a problem. But your game will probably start to slow down if you have a few thousand, or if your Actors are doing a lot of work inside of their Tick function. If your Actors don't tick and aren't moving around, they have very little cost, and you can have thousands of them no problem.

If you are building your levels by hand, and they have lots of computationally expensive actors (such as a game where you wander around a large dungeon and encounter enemies who are roaming around), you will want to figure out an approach that works for your game. For example, you can use trigger volumes to deactivate the enemies you've placed into the level when the players aren't near them.

If your are making a networked game, you'll also want to reduce the amount of bandwidth between the clients and server for any Actors that are replicated over the network. There are options within the Actor replication properties panel that let you make Actors stop being replicated to clients if they are some distance away from them.

more ▼

answered Aug 23 '15 at 06:37 PM

avatar image

cancel
2.4k 100 72 122

avatar image Atin123 Aug 27 '15 at 05:14 PM

Thanks for detailed explanation :)

(comments are locked)
10|2000 characters needed characters left
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