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"

How to optimize large character bp?

I have a pretty expansive character bp and it lags like crazy. It's honestly not that complex just sets up the characters stats and names but for some reason it lags like crazy.

The character is extremely low poly(24 tris) and the stats are generated through random ints and the features are decided based on what's pulled from enums. which believe me is 9 different stats and like 5 different features nothing here is crazy complex.

The only thing that I can think is lagging it is I have a fairly large data table to decide names which has 1,352 entries. And I'm apprehensive to shave that at all cause my project your supposed to have hundreds of npcs at a time and I don't want tons of repeating names.

Furthermore my game goes from 120 fps to 30 when I spawn a single character in which is just terrible. Any help appreciated.

Also it is for a fact not my pc cause I can alt-tab back into a game and play fine while I compile it.

And please I don't want a million people spamming, "Hur-dury-hur hur you need to use C++ for aactual effecient code heheaheeqeae!1!!1!!"

Product Version: UE 4.21
more ▼

asked Apr 13 '19 at 07:47 PM in Blueprint Scripting

avatar image

30 1 3 7

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

2 answers: sort voted first

I have a DT with half a million entries and it has no impact on performance, why should it.

Check your Ticks for loops and casting - it might be a culprit.

more ▼

answered Apr 13 '19 at 08:17 PM

avatar image

14.8k 77 25 62

avatar image PerCat Apr 13 '19 at 08:28 PM

My character bp does not have any casting or run any ticks.

avatar image duderseb Apr 13 '19 at 10:01 PM

Have you tried unchecking Start With Tick Enabled on the class initial values? For testing, can you re-reference to a second temporary data table with just a few entries to pinpoint whether the problem is as you suspect?

avatar image PerCat Apr 13 '19 at 10:54 PM

Well I'm looking at ue4 in task manager and when it lags and freezes it's only using 16% of ym memory and never goes above that amount which is weird cause my pc has 32gb

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

Hitches and lag can still be caused by other in-engine factors or other outside/hardware bottlenecks (like I/O, GPU, etc). Your best bet to diagnose this is to start within a PIE session using stat commands. Failing that you can use the profilers for a deeper dive into how the engine is using the hardware itself.

more ▼

answered Apr 15 '19 at 05:51 PM

avatar image

503 2 9 7

avatar image PerCat Apr 15 '19 at 10:52 PM

Thanks man I'll have to check this out in more detail after work!

(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