Browse Source

Blur element when made invisible, maybe fixes #57

Michael Ragazzon 6 years ago
parent
commit
820e36071a
2 changed files with 4 additions and 1 deletions
  1. 3 0
      Source/Core/Element.cpp
  2. 1 1
      readme.md

+ 3 - 0
Source/Core/Element.cpp

@@ -1636,6 +1636,9 @@ void Element::OnPropertyChange(const PropertyIdSet& changed_properties)
 
 
 			if (parent != nullptr)
 			if (parent != nullptr)
 				parent->DirtyStackingContext();
 				parent->DirtyStackingContext();
+
+			if (!visible)
+				Blur();
 		}
 		}
 
 
 		if (changed_properties.Contains(PropertyId::Display))
 		if (changed_properties.Contains(PropertyId::Display))

+ 1 - 1
readme.md

@@ -41,7 +41,7 @@ The main effort in RmlUi 3.0 has been on improving the performance of the librar
 - Several containers have been replaced, such as std::map to [robin_hood::unordered_flat_map](https://github.com/martinus/robin-hood-hashing).
 - Several containers have been replaced, such as std::map to [robin_hood::unordered_flat_map](https://github.com/martinus/robin-hood-hashing).
 - Reduced number of allocations and unnecessary recursive calls.
 - Reduced number of allocations and unnecessary recursive calls.
 - Internally, the concept of computed values has been introduced. Computed values take the properties of an element and computes them as far as possible without introducing the layouting.
 - Internally, the concept of computed values has been introduced. Computed values take the properties of an element and computes them as far as possible without introducing the layouting.
-- And many more, smaller optimizations, resulting in about 10x performance increase for creation and destruction of a large number of elements. A benchmark is included with the samples.
+- And many more, smaller optimizations, resulting in a more than **25x** measured performance increase for creation and destruction of a large number of elements. A benchmark is included with the samples.
 
 
 
 
 ### Sprite sheets
 ### Sprite sheets