ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -94,9 +94,27 @@ public class preload_allScene : MonoBehaviour
|
||||
StartCoroutine(DelayedDisableImage());
|
||||
}
|
||||
|
||||
// Compile gameplay shaders now (during preload) so the first note / VFX / UI
|
||||
// blur does not pay the shader variant compile cost mid-gameplay. Progress is
|
||||
// shown on the loading overlay; a valid cache skips compilation. Preload starts
|
||||
// in parallel so resource loading is not blocked by the warm-up.
|
||||
StartCoroutine(WarmupShadersRoutine());
|
||||
|
||||
StartPreload();
|
||||
}
|
||||
|
||||
private IEnumerator WarmupShadersRoutine()
|
||||
{
|
||||
gTransBlack overlay = SceneObjectLookupCache.FindAny<gTransBlack>();
|
||||
yield return GlobalFxShaderWarmer.WarmupRoutine(text =>
|
||||
{
|
||||
if (overlay != null)
|
||||
{
|
||||
overlay.SetNowLoadingText(text);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void EnsureOpeningVideoSetup()
|
||||
{
|
||||
TryAutoAssignVideoClips();
|
||||
|
||||
Reference in New Issue
Block a user