def _compute_jitters(self):
        """ Internal method to compute the SMAA sub-pixel frame offsets """
        self._jitters = []
        self._jitter_index = 0
        scale = 1.0 / float(Globals.native_resolution.x)

        # Reduce jittering to 35% to avoid flickering
        scale *= 0.35

        for x, y in JITTERS[self.get_setting("jitter_pattern")]:
            jitter_x = (x * 2 - 1) * scale * 0.5
            jitter_y = (y * 2 - 1) * scale * 0.5
            self._jitters.append((jitter_x, jitter_y))
 Internal method to compute the SMAA sub-pixel frame offsets 
metadrive/render_pipeline/rpplugins/smaa/plugin.py