In terms of what the international community has been able to do to stop those kinds of violations, historically, the International Criminal Court tried to issue an arrest warrant, for example, against al-Bashir. I just want to note that the traditional ways of doing things might have brought us to this point and are not necessarily the best forms of deterrent.
Concrete ways of stopping the violence may include blocking the flow of funding and finding out what the sources of their funding are. Where are they getting their military supplies? How are they able to continue these atrocities? That obviously will penalize them more than the threat of future prosecutions for violations or telling Sudan or RSF that they're violating human rights.
When we're speaking of genocide and mass atrocity crimes, I think we share the same goal, but I'm not quite sure if traditional ways of looking at it are the best ways to go about it.