Skip to content

Commit

Permalink
Fix the Vm using only 1 core
Browse files Browse the repository at this point in the history
  • Loading branch information
Devil2548 authored Jul 11, 2021
1 parent f5bf8a7 commit b048468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mcvmcomputers/client/gui/GuiPCEditing.java
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public void run() {
}
edit.setOSTypeId(OSType);
edit.setMemorySize((long) Math.min(ClientMod.maxRam, (pc_case.getGigsOfRamInSlot0() + pc_case.getGigsOfRamInSlot1())));
edit.setCPUCount(Math.min(1, ClientMod.vb.getHost().getProcessorCount() / pc_case.getCpuDividedBy()));
edit.setCPUCount(Math.max(1, ClientMod.vb.getHost().getProcessorCount() / pc_case.getCpuDividedBy()));
edit.getGraphicsAdapter().setAccelerate2DVideoEnabled(true);
edit.getGraphicsAdapter().setAccelerate3DEnabled(true);
edit.getGraphicsAdapter().setVRAMSize((long)ClientMod.videoMem);
Expand Down

0 comments on commit b048468

Please sign in to comment.