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"

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. 

"AUTO" button in UMG to set Game Graphics?

I created a Settings menu in UMG Widget and i want to know how i can create a "Auto" button to see the client hardware and set the best settings to the game run in 30...45 or 60 frames/s

I know it is possible because the editor Scalability has this button...here!

(The other buttons "Low, Medium, High and Epic" i want to learn too :3 )alt text

Product Version: Not Selected
Tags:
sem título.png (433.8 kB)
more ▼

asked Sep 08 '14 at 11:37 PM in Blueprint Scripting

avatar image

LitStudio
371 55 49 64

avatar image BPANDREW Jan 20 '15 at 12:35 PM

i too would like to know how to do this

this in game UI exists in Epics fortnite as well I've seen other community games have it - just need to know how to wire it to the engine in blueprint/c++

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

5 answers: sort voted first

Hi Sand ,

You can execute a console command through blueprint. It may pause when executed , due to running a benchmark in the background and applying some settings accordingly.

It took me some time.But finally found you a simple solution accessible through blueprint. Hope this help.Let me know if this answered your question. Note - Auto Scalability does impact the resolution scale , depending on your needs , you might want to counter that.

Best Regards , Ockert

alt text

solution.jpg (25.4 kB)
more ▼

answered Jan 21 '15 at 01:27 AM

avatar image

Ockertvs
158 6 10 23

avatar image LitStudio Jan 27 '15 at 09:28 PM

WOW!!! It was what i looking for...but how i can archive the "Low" "Medium" "High" "Epic" resolution with this console command?

avatar image Ockertvs Jan 27 '15 at 11:02 PM

"Archive" - do you want to save the Scalability ? Or did you mean "achieve".

avatar image Ockertvs Jan 27 '15 at 11:33 PM

alt text

This will set the ResolutionScale/Quality back to 100% The ResolutionScale/Quality takes the current resolution the engine is running at eg.1920x1080 and scale it down by the percentage , "auto" percentage in this case.

Hope that answered your question ? If not ,feel free to elaborate further.

Best Regards , Ockert

avatar image Ockertvs Jan 27 '15 at 11:47 PM

Oh , wait I think understand your question now. You can use the following commands alt text

You can type "Scalability ?" in the console command for the information.Looks like they listed "auto" in 4.7.

avatar image LitStudio Jan 30 '15 at 05:47 PM

Sorry for my mistake....the last one was what i wanted! THANKS :D

avatar image Ockertvs Feb 02 '15 at 07:18 AM

Glad I could be of help.

Ockert

avatar image Fanto88 Jul 05 '15 at 10:05 AM

Sorry guys.. But it looks like that "Scalability" doens't works, and if i write "scalability ?" in the console nothing appear. I use unreal engine 4.8.1

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

Seems to be c++ not exposed to blueprint - not 100% sure of this yet

 Scalability::FQualityLevels qual;
 qual = Scalability::GetQualityLevels();
 qual.SetFromSingleQualityLevel(3);
 Scalability::SetQualityLevels(qual);

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/UGameUserSettings/ScalabilityQuality/index.html

alt text

untitled.png (7.6 kB)
more ▼

answered Jan 20 '15 at 12:42 PM

avatar image

BPANDREW
995 22 27 125

avatar image BPANDREW Jan 20 '15 at 01:03 PM

just confirming this works

now just need to know what AUTO is.. it might be

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/FQualityLevels/SetBenchmarkFallback/index.html

avatar image BPANDREW Jan 20 '15 at 01:22 PM

auto seems to be trouble

searching github for how the editor does it i stumbled across this

https://github.com/EpicGames/UnrealEngine/blob/890cefeee330dec714271af1cd07969f0a60848e/Engine/Source/Editor/UnrealEd/Private/SScalabilitySettings.cpp

 CachedQualityLevels = GEditor->GetGameAgnosticSettings().EngineBenchmarkResult;


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

this is my C++ method i expose to blueprint for my UMG widget

I'm not 100% about this because I seem to get different results than if i use the editor button (altho this performs the same action) could be because my game is running IN the editor

 void MYCONTROLLER::QUALITY_SET_LEVEL(int32 levelID)
 {
     Scalability::FQualityLevels qual;
     qual = Scalability::GetQualityLevels();
     
     if (levelID >= 0 && levelID < 4)
     {
         qual.SetFromSingleQualityLevel(levelID);
     }
     else if (levelID == 4)
     {
         qual = Scalability::BenchmarkQualityLevels(1.0);
     }
 
     Scalability::SetQualityLevels(qual);
 }
more ▼

answered Jan 20 '15 at 01:28 PM

avatar image

BPANDREW
995 22 27 125

avatar image LitStudio Jan 20 '15 at 06:45 PM

I'll need to learn C++..I don't know nothing.... :(

avatar image BPANDREW Jan 20 '15 at 09:18 PM
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

At least in 4.17.2 this stuff is all exposed to Blueprint: The GameUserSettings class has two functions: RunHardwareBenchmark and ApplyHardwareBenchmarkResults.

RunHardwareBenchmark computes a GPU and CPU score and uses the data given in BaseScalability.ini to determine which parameters to set based on those values. ApplyHardwareBenchmarkResults applies those values.

more ▼

answered Jan 30 '18 at 10:56 AM

avatar image

soulsource_ag
237 4 12 14

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

At least in 4.17.2 this stuff is all exposed to Blueprint: The GameUserSettings class has two functions: RunHardwareBenchmark and ApplyHardwareBenchmarkResults.

RunHardwareBenchmark computes a GPU and CPU score and uses the data given in BaseScalability.ini to determine which parameters to set based on those values. ApplyHardwareBenchmarkResults applies those values.

more ▼

answered Jan 30 '18 at 10:52 AM

avatar image

soulsource_ag
237 4 12 14

(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