Skip to content
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

Oncomplete event for effects #59

Open
MossFrog opened this issue Sep 9, 2021 · 7 comments
Open

Oncomplete event for effects #59

MossFrog opened this issue Sep 9, 2021 · 7 comments

Comments

@MossFrog
Copy link

MossFrog commented Sep 9, 2021

Is there an onComplete() event for effekseer effects? This could be useful since performance on Android devices is very bad even when no effects are being rendered within the scene (The update loop causes performance issues)

@durswd
Copy link
Contributor

durswd commented Sep 9, 2021

Which version did you use? I have improved a performance on the android recently.

should onComplete be called after rendered?

@MossFrog
Copy link
Author

MossFrog commented Sep 9, 2021

Yes after the effect has completed its render is it possible to obtain an event in order to trigger further code?
I will try a more recent version for the performance issues! Thank you

@durswd
Copy link
Contributor

durswd commented Sep 10, 2021

If it is still slow, please tell me your environment in a detail.

@MossFrog
Copy link
Author

I have not tested performance on the newer versions yet. I was asking if i can create an event callback function for the effekseer effects, such as
effect.onComplete() => function() {console.log("EFFECT IS FINISHED"}; ?

@durswd
Copy link
Contributor

durswd commented Sep 10, 2021

It seem that it cannot implement it and it makes no sense because JavaScript and WebGL runs on a single thread.

@MossFrog
Copy link
Author

I see, then would it be possible to set an an effect to loop? Such as effect.setLoop(true); so that the effect can keep looping after completion?

@durswd
Copy link
Contributor

durswd commented Oct 7, 2021

I don't have a plan to implement setLoop, because you can implement it with EffekseerHandle.exists()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants