The compass being a stand alone device can be putting out heading information all the time. Of course resolution may be lacking especially in cheaper units.
The GPS puts out very accurate direction data but, depending on the GPS unit there will be a refresh rate you have to contend with. I’m not an expert on the OEM modules by any means. Here is a good source for that kind of info.