# AdvancedDynamicTexture.invalidateRect

**URL:** <https://forum.babylonjs.com/t/advanceddynamictexture-invalidaterect/30737>\
**Category:** Questions\
**Created:** [May 25, 2022, 4:37pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-invalidaterect/30737 "2022-05-25T16:37:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slimfinger](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Slimfinger](https://forum.babylonjs.com/u/Slimfinger)\
**Post date:** [May 25, 2022, 4:37pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-invalidaterect/30737/1 "2022-05-25T16:37:54Z")

</div>

I cannot seem to figure out exactly how this works. It doesn’t appear to work as described in the docs; i.e., the rectangle that I provide doesn’t appear to match the section of screen that is invalidated.

Also, is there a method to simply mark the entire texture as invalid? Notes on this:

1. ‘markAsDirty’ does not seem to work
2. ‘invalidateRect’ with invalid params seems to work, but is this proper?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 25, 2022, 5:39pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-invalidaterect/30737/2 "2022-05-25T17:39:04Z")

</div>

Can you provide a repro in the playground ?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [June 24, 2022, 12:29pm UTC](https://forum.babylonjs.com/t/advanceddynamictexture-invalidaterect/30737/3 "2022-06-24T12:29:25Z")

</div>

Hey there @Slimfinger just checking in, do you still have questions?
