Browse Source
OSX: legacy canvas rendering speed improvements.
OSX: legacy canvas rendering speed improvements.
* Enables USE_WX_GRAPHICS_CONTEXT for OSX by default. This shouldn¡¯t be a major change because it seems to get used on OSX behind the scenes anyway. As a side effect, this might improve behavior with anti-aliasing because KiCad shifts drawing by (0.5, 0.5) into the middle of the virtual pixels so things may be less blurry. It will still build without enabling USE_WX_GRAPHICS_CONTEXT, but the optimizations obviously won¡¯t be used. * The optimizations currently only are effective when USE_WX_GRAPHICS_CONTEXT is enabled and OSX. They might be also good for other platforms using USE_WX_GRAPHICS_CONTEXT because it aggregates some drawing primitives using paths wxGraphicsContext provides. * It adds some #ifdefs for disabling the wxGraphicsContext stuff when USE_WX_GRAPHICS_CONTEXT isn¡¯t enabled. If you hate #ifdefs, this also could be dropped but then it will always check if wxGraphicsContext can be applied.pull/10/head
committed by
Wayne Stambaugh
3 changed files with 145 additions and 33 deletions
Write
Preview
Loading…
Cancel
Save
Reference in new issue