Autodetect the graphics

Materials, textures, lighting, postfx
4 posts Page 1 of 1
huhorler
Posts: 10
Joined: Mon Oct 10, 2016 11:40 am
by huhorler » Tue Oct 11, 2016 4:35 am
If the game is online,there will be many players and their pc or personal pc is diffrent from each other.So some one can not run the game well if the setting is same.If the default setting is low, Picture effect is not good.So how to autodetect by the mechine.
Duion
Posts: 757
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Oct 11, 2016 9:54 am
There is an auto detect graphics button in the options already. You need to find the command and execute it on the game's launch.
Then you would need to make it remember that the auto detect has been executed, otherwise it will do it on every launch, breaking the users configs every time.
I would do that with storing a $pref value into the config file after the first launch and auto detect has taken place.
huhorler
Posts: 10
Joined: Mon Oct 10, 2016 11:40 am
by huhorler » Tue Oct 11, 2016 11:34 am
@
User avatar
Duion
getPixelShaderVersion() is only check the Gpu.But the other hardware is not contains such as CPU,Memery,Screen...
Duion
Posts: 757
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Oct 11, 2016 12:56 pm
In options menu there is an auto detect button it executes OptionsDlg._autoDetectQuality(); when pushed, thats all you need probably.
4 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests