Turn on OpenGL caching. Time to smoke out the bugs.
This commit is contained in:
parent
3158273c1a
commit
29e0e6921b
|
@ -91,6 +91,7 @@ SCH_DRAW_PANEL::SCH_DRAW_PANEL( wxWindow* aParentWindow, wxWindowID aWindowId,
|
||||||
setDefaultLayerDeps();
|
setDefaultLayerDeps();
|
||||||
|
|
||||||
view()->UpdateAllLayersOrder();
|
view()->UpdateAllLayersOrder();
|
||||||
|
|
||||||
// View controls is the first in the event handler chain, so the Tool Framework operates
|
// View controls is the first in the event handler chain, so the Tool Framework operates
|
||||||
// on updated viewport data.
|
// on updated viewport data.
|
||||||
m_viewControls = new KIGFX::WX_VIEW_CONTROLS( m_view, this );
|
m_viewControls = new KIGFX::WX_VIEW_CONTROLS( m_view, this );
|
||||||
|
@ -241,7 +242,7 @@ void SCH_DRAW_PANEL::SetEnableZoomNoCenter( bool aEnable )
|
||||||
void SCH_DRAW_PANEL::setDefaultLayerDeps()
|
void SCH_DRAW_PANEL::setDefaultLayerDeps()
|
||||||
{
|
{
|
||||||
// caching makes no sense for Cairo and other software renderers
|
// caching makes no sense for Cairo and other software renderers
|
||||||
auto target = KIGFX::TARGET_NONCACHED; //m_backend == GAL_TYPE_OPENGL ? KIGFX::TARGET_CACHED : KIGFX::TARGET_NONCACHED;
|
auto target = m_backend == GAL_TYPE_OPENGL ? KIGFX::TARGET_CACHED : KIGFX::TARGET_NONCACHED;
|
||||||
|
|
||||||
for( int i = 0; i < KIGFX::VIEW::VIEW_MAX_LAYERS; i++ )
|
for( int i = 0; i < KIGFX::VIEW::VIEW_MAX_LAYERS; i++ )
|
||||||
m_view->SetLayerTarget( i, target );
|
m_view->SetLayerTarget( i, target );
|
||||||
|
|
Loading…
Reference in New Issue