Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
fix: flicker on loading (#856)
Browse files Browse the repository at this point in the history
* Update sagas.ts

Signed-off-by: Esteban Ordano <[email protected]>

* fix: avoid EXPERIENCE_STARTED

Signed-off-by: Esteban Ordano <[email protected]>

Signed-off-by: Esteban Ordano <[email protected]>
  • Loading branch information
eordano authored Jan 24, 2023
1 parent 792575a commit 7d55b68
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/shared/loadingScreen/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,13 @@ function* updateLoadingScreenInternal() {

if (!state.comms.context) msgs.push('Connecting to comms...')

if (state.loading.pendingScenes && state.loading.totalScenes > 1) {
msgs.push(
`Initializing scenes ${state.loading.totalScenes - state.loading.pendingScenes}/${state.loading.totalScenes}...`
)
} else if (state.loading.renderingWasActivated) {
msgs.push(`Waiting for initial render...`)
}

msgs.push(loadingState.message)
return msgs.join('\n')
})

const loadingScreen = {
isVisible,
message: loadingMessage || loadingState.message || loadingState.status || '',
message: loadingMessage || loadingState.message || '',
showTips: loadingState.initialLoad || !parcelLoadingStarted
}
getUnityInstance().SetLoadingScreen(loadingScreen)
Expand Down

0 comments on commit 7d55b68

Please sign in to comment.