How do I lower OS /system resource usage /adjust for best performance? Lets say I want to dedicate all resources in running some code so I would like to decrease operating system usage as much as possible  i.e. the mac equivalent of adjusting for best performance (e.g. in windows you can adjust for best performance make the whole thing look like windows 95 inorder to conserve resources I want to know how to do that for a mac.) totally get rid of extraneous/ overly fine graphics animations etc

Using a Mac OS catalina
App Tamer may satisfy your requirements.