-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate heal effect2 #2967
Integrate heal effect2 #2967
Conversation
character-fx.js
Outdated
if (!this.healEffect ) { | ||
this.healEffect = metaversefile.createApp(); | ||
(async () => { | ||
await metaverseModules.waitForLoad(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we should not wait for this here. By the time this code runs, wevaverse.js
should already have waited for everything we need.
The list of all of the loads is here:
Line 79 in 77f5173
physx.waitForLoad(), |
This comment also applies to the rest of the character fx meshes which have a similar code pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, instead, of on the first frame, we can create this app the first time it is needed, when the character first gets a heal/cure action.
Since the module is preloaded, it should be ready to go when we hit this code path so there should not be any loading delay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some timing fixes are probably needed, but it looks good overall!
Integrate heal effect2
Integrate heal effect