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

Update Dynamic Element caused items to flickering #25

Open
weihao opened this issue Jan 21, 2021 · 3 comments
Open

Update Dynamic Element caused items to flickering #25

weihao opened this issue Jan 21, 2021 · 3 comments

Comments

@Phoenix616
Copy link
Owner

Please provide some more information about what exactly the issue is. The issue title doesn't really tell me anything.

@weihao
Copy link
Author

weihao commented Jan 23, 2021

demo

Is this caused by the implementation of the draw?

Elements are cleared and then reinitalized. Why not cache the same material and update the item meta data?

@weihao weihao changed the title Update Dynamic Element caused items to flick Update Dynamic Element caused items to flickering Feb 4, 2021
@Phoenix616
Copy link
Owner

Sorry for the late reply, I have never seen that happen, all my items get updated instantly. Are you sure your server isn't lagging or that you aren't running some very expensive code on element calculation?

As for caching: Changing material or even removing items completely needs to be supported too. I just had some ideas to improve the re-drawing though but without knowing what is causing your abnormal behaviour it's hard to say if it could influence your issue.

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

No branches or pull requests

2 participants