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

Implement the editing/parsing/layout routines in a WebWorker #161

Open
capnmidnight opened this issue Jun 2, 2020 · 0 comments
Open

Implement the editing/parsing/layout routines in a WebWorker #161

capnmidnight opened this issue Jun 2, 2020 · 0 comments

Comments

@capnmidnight
Copy link
Owner

STATE! State is difficult to manage! But it's expensive to recompute state on every frame of rendering/every edit.

After Issue #160 was finished, edits to large documents are pretty fast. But big changes are still pretty slow. They're "fast" in the sense that it's faster than VS Code or other JS-based text editors, but it's "slow" when regarding the needs for VR.

Putting all the logic in a WebWorker, off the UI thread, could at least hide that slowness from the user.

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

1 participant