Dave beat me to it!
BUT here it is anyway...
The 'z-fighting' when two materials 'twinkle' is caused when you have two coplanar [or near coplanar] faces .
So you seem to have some 'walls' with two [or more] faces
Check if you have coincident groups/instances giving you two faces overlaid...
Some windows are cutting faces OK BUT others are not!
Have you some groups/components and other groups/components or faces overlaying them?
Also it looks like you have applied windows onto faces that are inside groups/component... so although it might 'glue', it will NOT 'cut' a hole - therefore the window's 'glass' will z-fight with the wall face that is inside its group. If it is a gluing component, but it is not 'cutting type', then it will z-fight even if the face and component are in the same 'entities context'.
So, always apply a gluing+cutting-component onto the face that is in the same 'context' [i.e. edit the group/instance and then insert/glue the windows on faces inside it - the windows will then cut holes in the faces they are glued onto].[image: MJJk_Capture.PNG]