Skip to content

Commit 3eb4cdb

Browse files
committed
now warming up with a shader variant--hopefully works better
1 parent 86209f9 commit 3eb4cdb

File tree

3 files changed

+849
-2
lines changed

3 files changed

+849
-2
lines changed

Assets/BossRoom/Scripts/Client/UI/StartupUI.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ namespace BossRoom.Client
88
/// </summary>
99
public class StartupUI : MonoBehaviour
1010
{
11+
[SerializeField]
12+
private ShaderVariantCollection m_PrewarmShaders;
13+
1114
void Start()
1215
{
1316
AudioListener.volume = ClientPrefs.GetMasterVolume();
14-
SceneManager.LoadScene("MainMenu");
1517

16-
Shader.WarmupAllShaders();
18+
m_PrewarmShaders.WarmUp();
19+
20+
SceneManager.LoadScene("MainMenu");
1721
}
1822
}
1923
}

0 commit comments

Comments
 (0)