impr: Improve frame rate when lots of bytes are highlighted

This commit is contained in:
WerWolv
2023-07-24 23:24:31 +02:00
parent 440e2d91fc
commit 4d4f223357
4 changed files with 48 additions and 17 deletions

View File

@@ -76,6 +76,8 @@ namespace hex::plugin::builtin {
PerProvider<std::optional<u64>> m_selectionStart, m_selectionEnd;
PerProvider<float> m_scrollPosition;
PerProvider<std::map<u64, color_t>> m_foregroundHighlights, m_backgroundHighlights;
};
}

View File

@@ -15,9 +15,11 @@ namespace hex::plugin::builtin {
~ViewPatches() override = default;
void drawContent() override;
void drawAlwaysVisible() override;
private:
u64 m_selectedPatch = 0x00;
PerProvider<u32> m_numPatches;
};
}