mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
impr: Improve frame rate when lots of bytes are highlighted
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user