use cvar checking instead of asking window flags every frame