This gives priority to update_timing() over update_geometry() when both are triggered since update_timing() make use of RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO which re-initialize both geometry(width,height,aspect) and timing (fps/sound sample rate).
This is turn avoids causing both environment calls to be called in a single frame.
This gives priority to update_timing() over update_geometry() when both are triggered since update_timing() make use of RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO which re-initialize both geometry(width,height,aspect) and timing (fps/sound sample rate). This is turn avoids causing both environment calls to be called in a single frame.