aboutsummaryrefslogtreecommitdiff
path: root/include/Text.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-03 14:46:57 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-03 14:47:03 +0200
commit4907c5cc952e94e32cb0f95ea6f3be361b55d389 (patch)
tree305331f272dd3d93bb20bffdf154eeb1f798d565 /include/Text.hpp
parent8ce51433c8a73b76e57f124bb62e5aa39867238a (diff)
Reduce memory usage by cleaning up text not visible on the screen
As a text, memory usage decreased from 150mb to 20mb
Diffstat (limited to 'include/Text.hpp')
-rw-r--r--include/Text.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index 6a4ed9c..7e9dda2 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -139,7 +139,6 @@ namespace QuickMedia
bool dirtyText;
bool dirtyCaret;
bool editable;
- bool visible;
CaretMoveDirection caretMoveDirection;
sf::FloatRect boundingBox;
float lineSpacing;
@@ -149,7 +148,6 @@ namespace QuickMedia
int caretIndex;
float caret_offset_x;
sf::Vector2f caretPosition;
- sf::Clock lastSeenTimer;
sf::Vector2u renderTargetSize;
std::vector<VertexRef> vertices_linear; // TODO: Use textElements instead