# TextEditor painting jank

**URL:** <https://forum.juce.com/t/texteditor-painting-jank/50398>\
**Category:** General JUCE discussion\
**Created:** [February 28, 2022, 4:49pm UTC](https://forum.juce.com/t/texteditor-painting-jank/50398 "2022-02-28T16:49:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![anthony-nicholls](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/anthony-nicholls/32/1246_2.png) [@anthony-nicholls](https://forum.juce.com/u/anthony-nicholls)\
**Post date:** [April 27, 2022, 3:39pm UTC](https://forum.juce.com/t/texteditor-painting-jank/50398/9 "2022-04-27T15:39:54Z")

</div>

This is the conversation I recall having with Jules (5 years and 16 days ago!).

> [@CachedComponentImage invalidation logic](https://forum.juce.com/t/cachedcomponentimage-invalidation-logic/21768/4):
>
> If the parent is buffered, then part of that image is the child component. So if the child needs repainting, of course the parent needs to invalidate its image! Having nested, buffered, opaque components that aren’t perfectly efficiently handled could just be an edge-case that was overlooked, or where it just wasn’t worth the extra step of checking for occlusion just to handle a rare situation.

---

_[View the full topic](https://forum.juce.com/t/texteditor-painting-jank/50398)._
