mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
FIX: try to reduce page fault while idling
jira: [none] Change-Id: I563cbf4a8ba8a4ae1e5b1b1f735753d3aef23e16 (cherry picked from commit ed1e9678c351dc037f2e3cc7ea0e19d46731699c)
This commit is contained in:
@@ -718,6 +718,7 @@ void AMSextruder::updateNozzleNum(int nozzle_num)
|
||||
}
|
||||
|
||||
SetSizer(m_bitmap_sizer);
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void AMSextruder::msw_rescale()
|
||||
@@ -1527,10 +1528,10 @@ void AMSLib::Update(Caninfo info, std::string ams_idx, bool refresh)
|
||||
if (info.material_colour.Alpha() != 0 && info.material_colour.Alpha() != 255 && info.material_colour.Alpha() != 254 && m_info.material_colour != info.material_colour) {
|
||||
transparent_changed = true;
|
||||
}
|
||||
|
||||
m_info = info;
|
||||
m_ams_id = ams_idx;
|
||||
m_slot_id = info.can_id;
|
||||
Layout();
|
||||
if (refresh) Refresh();
|
||||
}
|
||||
|
||||
@@ -3068,6 +3069,11 @@ void AmsItem::AddLiteCan(Caninfo caninfo, int canindex, wxGridSizer* sizer)
|
||||
|
||||
void AmsItem::Update(AMSinfo info)
|
||||
{
|
||||
if (m_info == info)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
m_info = info;
|
||||
m_can_count = info.cans.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user