Minecraft has extremely bad fps drops, low fps and lag spikes and its not using any of resources I have like 45% cpu 25% of ram dedicated to it (4gb) and I don't know about the gpu but I am sure it wouldn't be that my gpu can't handle it
Just want to comment that modern CPUs have more cores and threads than most programs will fully use 100% of the time, if ever. Having four cores/eight threads, Minecraft will never use 100% of your CPU, because while Minecraft is multi-threaded to a small degree, it's not highly threaded on average, especially not for eight threads. So 45% CPU utilization on your CPU means your CPU is actually being well used. I routinely see just 50% or less on my four core/four thread CPU, but despite this my CPU is likely my bottleneck.
As for your lag and low performance, you'd have to give more information. Is it when loading new chunks? When generating new chunks? Around a lot of entities or mobs, like farms? Around a lot of water or water temples? Are you using shaders, texture packs, a high render distance or mods, etc.?
Also, unless your using a very high render distance and a lot of mods, I'd allocate something closer to 2 GB. I actually do need 4 GB allocated myself because I've legitimately tried 2 GB and 3 GB and neither of those were enough for all circumstances (3 GB was close to enough but not quite, especially when I open to LAN and have another player on, so I use 4 GB). It's probably not single-handedly causing your performance issues but too much RAM allocation can work against you.
Minecraft has extremely bad fps drops, low fps and lag spikes and its not using any of resources I have like 45% cpu 25% of ram dedicated to it (4gb) and I don't know about the gpu but I am sure it wouldn't be that my gpu can't handle it
Intel Core i7-4720HQ 2.60GHz
16GB Installed memory
64-bit Operating System, x64 based processor
NVidia Gefore GTX960M 4gb
(I am on ssd)
Just want to comment that modern CPUs have more cores and threads than most programs will fully use 100% of the time, if ever. Having four cores/eight threads, Minecraft will never use 100% of your CPU, because while Minecraft is multi-threaded to a small degree, it's not highly threaded on average, especially not for eight threads. So 45% CPU utilization on your CPU means your CPU is actually being well used. I routinely see just 50% or less on my four core/four thread CPU, but despite this my CPU is likely my bottleneck.
As for your lag and low performance, you'd have to give more information. Is it when loading new chunks? When generating new chunks? Around a lot of entities or mobs, like farms? Around a lot of water or water temples? Are you using shaders, texture packs, a high render distance or mods, etc.?
Also, unless your using a very high render distance and a lot of mods, I'd allocate something closer to 2 GB. I actually do need 4 GB allocated myself because I've legitimately tried 2 GB and 3 GB and neither of those were enough for all circumstances (3 GB was close to enough but not quite, especially when I open to LAN and have another player on, so I use 4 GB). It's probably not single-handedly causing your performance issues but too much RAM allocation can work against you.
Post a screenshot with F3 enabled.