Minecraft Java - single player - Local installation vs playing from server performance
Mine is an old pc and when using some redstone and water flow based farms it is becoming laggy - CPU utilization in task manager is 100%; rest of the metrics seems fine. Even when exploring with rockets and elytra maps are loading very very slow. SO I was thinking if I can host the minecraft server version in cloud like amazon and play from my desktop.
How will the performance vary? Will the CPU load decrease completely? How does Minecraft work - CPU and redstone tasks, world generation when exploring etc. work in server and only GPU/graphics load on my local machine? Will this benefit. Is it CPU bottleneck or GPU?
My machine is AMD Phenom II X4 945 (10-12yrs old PC) - but has SSD and basic GPU card. 4GB dedicated to MC launcher and total I have 8GB physical ram in local machine. I am already using optifine with Tlauncher
The CPU load will drop by quite a bit. It won't go very far down, but depending on builds in your current world, some 30-50% drop in load is to be expected. There will still be network overhead and don't expect your elytra performance to improve drastically (lots of data - new chunks - to be transferred to your client, unpacked and rendered).
You should also be aware of some significant differences between single-player and server play; in particular you can no longer pause the game, and spawn chunks remain loaded even if you're in other dimensions.
Before you go that way though, you may want to look into lag-mitigation activities, that may restore your 'integrated server' to a better shape. In particular, migrating laggy stuff out of spawn chunks (or migrating the spawn chunks away, using /setworldspawn in a lag-friendly rarely-visited area like a deep ocean), getting rid of big clumps of animals (e.g. "cow hole" type cow farms - where collisions are calculated between each possible pair, so 24 cows generate 552 collisions each tick), make sure all farms can be (and are) switched off when not in use (and preferably distant enough they are unloaded entirely), reduce the number of hopper minecarts with use, cover hoppers that don't need to suck in items from the world (hopper-lines) with composters,
And before anything else, install lag-reducing mods - Lithium, Phosphor, Sodium (and Fabric mod loader) - they don't break even very obscure vanilla features (a.k.a. useful bugs) while improving performance significantly; Lithium and Phosphor are server-side mods (but benefit the single-player integrated server too); Sodium is client-side, and mostly affecting GPU but it does perform some CPU optimizations as well.