8000 FlowchartWindow performance improvements and optimization by stevehalliwell · Pull Request #728 · snozbot/fungus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FlowchartWindow performance improvements and optimization #728
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

Merged

Conversation

stevehalliwell
Copy link
Collaborator

Prompted by forum thread, link.

Primarily changes to FlowchartWindow;

  • Cache results of expensive operations where possible
  • Avoid forced Repaint unless something is stale
  • Only draw items that are within the window's view

Blocks now track their selectedness and filteredness to avoid hundreds of contains calls every Draw
Only recalculate filtered collection and total blocks on flowchart when a change has occured
…tains calls

Added a testing scene for editor performance, for many blocks on 1 flowhcart
…ocks cache

FlowchartWindow.DrawRectConnection optimisation to remove alloc and internal loops
Only draw connections that are on screen
Limit repaint to when changes in block execution or previous execution happen rather forcing every frame
- changes cause repaint of flowhcart window
- Var list drawing performance improvements, cache styles and widths
- during undo and redo operations
- when command data is stale due to modification by user
@chrisgregan chrisgregan merged commit 2da8a0f into snozbot:master Feb 19, 2019
@stevehalliwell stevehalliwell deleted the FlowchartWindowPerfOptimisation branch February 24, 2019 08:26
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

Successfully merging this pull request may close these issues.

2 participants
0