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

Ideas for performance improvements #1

Open
iwbnwif opened this issue Jun 18, 2016 · 0 comments
Open

Ideas for performance improvements #1

iwbnwif opened this issue Jun 18, 2016 · 0 comments

Comments

@iwbnwif
Copy link
Owner

iwbnwif commented Jun 18, 2016

These are rough notes. This issue will need to be updated or replaced.

  1. Draw background to a bitmap (background colour, gradient, grid etc.) and then blit the bitmap rather than redrawing it each time. The background will only need to be redrawn on a scale or grid change.
  2. Use wxDC (i.e. not wxGraphicsContext or wxGCDC) for drawing the background. The grid looks better non-antialiased anyway.
  3. Draw text on wxDC rather than a graphics context. Drawing text on a graphics context double anti-aliases the text and it looks weird as well as being slower.
  4. When dragging multiple objects, draw them onto a transparent bitmap and move the bitmap.
  5. When scrolling, only draw the objects that are appearing on the page, the rest can be blitted.
  6. Zooming, using a bitmap rather than a complete redraw ala Google maps, Visio etc.
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

1 participant