From 4907c5cc952e94e32cb0f95ea6f3be361b55d389 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Oct 2020 14:46:57 +0200 Subject: Reduce memory usage by cleaning up text not visible on the screen As a text, memory usage decreased from 150mb to 20mb --- include/Text.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/Text.hpp') 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 vertices_linear; // TODO: Use textElements instead -- cgit v1.2.3