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

Dragging causes a framerate dip #42

Open
adam-savard opened this issue Nov 6, 2023 · 1 comment
Open

Dragging causes a framerate dip #42

adam-savard opened this issue Nov 6, 2023 · 1 comment

Comments

@adam-savard
Copy link

Just flagging this as an issue for anyone else that runs across it!

The framerate will take a massive nosedive if you have dozens of text inputs on screen and you're dragging them inside a container; this is because of the bounds calculation that happens in the _update. There's probably a more efficient way to make this happen, though I don't have any suggestions at this time.

@Mwni
Copy link
Owner

Mwni commented Nov 7, 2023

Good point. This could be optimized by not updating the HTML text input internally when the PIXI surrogate is being drawn instead. Of course, if substituteText = false, then this does not apply.

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