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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

will construction script have ANY effect on gameplay?

I think i already know the answer to this but i want to be absolutely sure before going ahead.

I've written a construction script which generates a large semi procedural level. When i compile it it takes my computer about 2 minutes to complete. It should probably be noted that my PC is above average spec.

Will this massively (possibly over) complex blueprint have any impact on the final performance of the game? or will it (for lack of a better term) collapse down?

I dont intend for the player to be able to generate new levels this is more so that i can be lazy in the long term and reuse the code. :)

Product Version: UE 4.21
more ▼

asked Dec 19 '18 at 02:13 PM in Blueprint Scripting

avatar image

143 8 17 19

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

2 answers: sort voted first

The answer is that it will not affect gameplay in the case of what you're doing.

Construction Script only runs once when you spawn the actor. If your actor is pre-placed, then Construction Script runs on the Editor. This means that during gameplay Construction Script is already compiled.

Also, as a piece of advice, you can separate the render stuff from the computational stuff. You can create functions in your actor and mark them as "Call In Editor", which creates a button on the details panel so you can run those functions on command while in the Editor.

What I normally do is that I do the procedural stuff on the cheap with zero to almost no render stuff, and when I'm happy with the result i push the "draw render stuff" button.

more ▼

answered Dec 19 '18 at 04:19 PM

avatar image

1.7k 8 3 8

avatar image Eightshot Dec 20 '18 at 07:54 AM

Thanks Evigmae, I kind of suspected that, Although i didnt think it was possible to trigger it in game at all. I thought it was purely editor.

Thanks for the additional advice aswell, Ill definitely look into it. Could save me a lot of time :)

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

Generally, the consensus with stuff like this is, it's okay if it's not as performant as it can be, as long as you are not performing that action constantly in quick succession (in a loop, or in Tick()). While it being in a Blueprint would surely affect performance as opposed to it being written in C++, you shouldn't really be concerned with this too much as it seems like a procedure that is not executed often.

more ▼

answered Dec 19 '18 at 04:01 PM

avatar image

86 1 4 3

(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