Accurate and precise correction of the gain drift is the key to achieve the required energy resolution of the Resolve microcalorimeter spectrometer on the X-ray Imaging and Spectroscopy Mission (XRISM). Therefore, Resolve is equipped with highly configurable X-ray sources called the modulated X-ray source (MXS). The pulsed nature allows us to separate calibration and astrophysical X-rays by time interval selections. However, undesirable characteristics of the MXS, such as the afterglow X-rays, restrict the allowed configuration range. Moreover, the nonlinear and discontinuous behaviors of the calibration line count rate make the determination of the optimal setting highly complex. The MXS count rate model has been established using measurements in the spacecraft thermal vacuum test with the flight detector and MXS. A trade-off study using the model enables us to choose a few settings for the continuous use of the MXS optimized for different ranges of target gain tracking intervals. An alternative approach, where the MXS is used only intermittently, has also been developed and implemented. This new mode enables us to reconstruct the drift without having most of the undesirable effects in science data. This also forms the basis of the gain tracking under the current Resolve configuration with the closed gate valve.

