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

💄 UI improvement: frontend lags visibly for larger N #37

Open
2 tasks
Blargian opened this issue May 14, 2023 · 0 comments
Open
2 tasks

💄 UI improvement: frontend lags visibly for larger N #37

Blargian opened this issue May 14, 2023 · 0 comments
Labels
bug Something isn't working improvement things that can make the application better refactor

Comments

@Blargian
Copy link
Owner

Frontend rendering visibly lags for larger numbers of N. I think this has to do with the silly way I wrote the playback functionality. I am storing all nodes for every iteration. Rather just the latest additions should be added to successive solving snapshots and the drawing algorithm should do the work of drawing only the changes (rather than everything from scratch each time). This will be a lot less computationally heavy, especially considering I loop through multiple arrays.

  • Refactor solving snapshots
  • Add drawing to its own thread

Recording 2023-05-14 at 08 08 51

@Blargian Blargian added improvement things that can make the application better refactor bug Something isn't working labels May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working improvement things that can make the application better refactor
Projects
None yet
Development

No branches or pull requests

1 participant