Using MediaQuery to get screen size and orientation is very fast and has minimal impact on frame rate and memory. It reads device metrics from the system, which is lightweight. However, excessive rebuilds triggered by MediaQuery changes (like orientation changes) can cause jank if not managed well.
Overall, MediaQuery itself does not drain battery or memory significantly, but inefficient use in widget rebuilds can affect smooth 60fps rendering.