Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Parallels"

From AppleGamingWiki, the wiki about gaming on M1 Apple silicon Macs
Line 47: Line 47:
  
 
===Powershell optimisation scripts===
 
===Powershell optimisation scripts===
 +
{{ii}} Warning: disabling services may make it very difficult to re-enable services again. Not recommended unless you know how to tinker with Windows services and Powershell intimately.
 
Download the [https://github.com/yue0707/Windows10ARMScripts/blob/main/stripwindows.ps1 stripwindows.ps1 script]. This script is designed to run Overwatch automatically after Parllels is run, and it also disables GUI and other Window services. Once the file is downloaded into the Desktop, you can run the command from Powershell <code>cd ~/Desktop</code> and then <code>.\stripwindows.ps1</code> - this will restart the virtual machine and then automatically launch Overwatch if it has been installed in the default directory.
 
Download the [https://github.com/yue0707/Windows10ARMScripts/blob/main/stripwindows.ps1 stripwindows.ps1 script]. This script is designed to run Overwatch automatically after Parllels is run, and it also disables GUI and other Window services. Once the file is downloaded into the Desktop, you can run the command from Powershell <code>cd ~/Desktop</code> and then <code>.\stripwindows.ps1</code> - this will restart the virtual machine and then automatically launch Overwatch if it has been installed in the default directory.
  

Revision as of 21:03, 22 June 2021

Parallels - use this link to support AppleGamingWiki and also use the code Y27-1ZG-QHE for 10% off.

Parallels is a virtualisation software which can virtualize an operating system such as Windows 10 ARM on macOS. On November 10, 2020, a free version of Parallels 16 was made available in the form of a Technical Preview which allows users to install Windows 10 ARM Insider Preview onto M1 Macs, and some games became playable such as Half-Life 2 and Fallout 2.

On April 14, 20201, Parallels released version 16.5 which offered increased support for M1 Macs, and made a license requirement and also offered a 14 day free trial.

Install Windows 10 ARM on Parallels

  • Parallels is a commercially paid product, but the Technical Preview is currently free to try.
Windows 10 ARM installation instructions[1]
  1. Visit Windows 10 ARM Insider Preview
  2. Sign up with a Microsoft account
  3. Download the latest Windows Insider build
  4. Download and install Parallels Technical Preview
  5. When asked for a VHDX file, point to the Windows 10 ARM Insider Preview build already downloaded

x64 emulation

The initial download of Windows 10 ARM Insider Preview only supports applications which are native to ARM, and many applications will be 'greyed out' or the 'install button' won't be enabled, or there is a 'side-by-side configuration is incorrect' error message. This is due to the fact that x64 applications were not supported.

On December 10, 2020, Microsoft released Windows 10 Inside Preview Build 21277 which enabled x64 emulation, which substantially increased the compatibility of games PC games such as Grand Theft Auto V and FarCry 3.[2]

Enable Dev channel[3]
  1. Open your installed Parallels installation
  2. Click Start and then type 'Insider'
  3. Click Windows Insider Program
  4. Click Link to a Windows Insider account
  5. Go to Diagnostics & Feedback settings and turn on optional diagnostic data
  6. Click on 'Beta Channel (Recommended)' to switch Insider settings
  7. Switch to 'Dev Channel'
  8. Click on Windows Update
  9. Check for updates
  10. A download of a newer build should be available, click Download and install

Gaming optimisations

Many of these optimisations come from this reddit post and will dramatically increase gaming performance, for example stuttering on Overwatch.[4]
  • Allocate 50% of the CPU cores (for M1 this means 4 cores total) and 50% of the RAM (for 8GB Mac allocate 4GB, for 16GB Mac allocate 8 GB), the virtual machine guest operating system can only make use of 50% of the resources of the host computer
  • Install ParkControl into Windows and disable everything and enable Bitsum Dynamic Boost
  • Open Task Manager - press Ctrl+ Shift+Esc, More details, click the Startup tab and ensure any unnecessary launchers and are disabled
  • Open Device Manager - press Start and then type Device Manager, open System devices and find Parallels Memory Controller and uninstall
  • Disable visual effects - press Start and then type Advanced System Settings, then under Performance click Visual Effects and select Best Performance and apply - (optional) select Advanced tab and under Virtual Memory click change, uncheck automatic paging and select No Paging File and Set - this may affect games differently
  • Disable Defender - go to Windows Defender settings and disable Tamper Protection, then click Start and type Local Grop Policy, go to Administrative Templates, Windows Components, Microsoft Defender Antvirus, "Turn off Microsoft Defender Antivirus" apple and reboot
  • If Defender is disabled then consider isolating Windows from the macOS host - on the Mac open Parallels, Control Center, click settings of the virtual machine, click Security and enable Isolate Windows from Mac
  • Powershell - click Start and type Powershell, type the scription set-executionpolicy unrestricted and enter

Once above steps are completed you can now use Powershell script to disable services.

Powershell optimisation scripts

Warning: disabling services may make it very difficult to re-enable services again. Not recommended unless you know how to tinker with Windows services and Powershell intimately.

Download the stripwindows.ps1 script. This script is designed to run Overwatch automatically after Parllels is run, and it also disables GUI and other Window services. Once the file is downloaded into the Desktop, you can run the command from Powershell cd ~/Desktop and then .\stripwindows.ps1 - this will restart the virtual machine and then automatically launch Overwatch if it has been installed in the default directory.

Alternatively you can customise the script so that it does not remove the GUI or automatically launch the game. For example you can create a new script using Notepad which omits the 2nd to last 'Themes' line and then save the file as stripwindows.ps1 on the Desktop using this code:

Set-Service -StartupType Disabled -Name "DiagTrack"
Set-Service -StartupType Disabled -Name "DusmSvc"
Set-Service -StartupType Disabled -Name "LanmanWorkstation"
Set-Service -StartupType Disabled -Name "WSearch"
Set-Service -StartupType Disabled -Name "WpnService"
Set-Service -StartupType Disabled -Name "LicenseManager"
Set-Service -StartupType Disabled -Name "EventLog"
Set-Service -StartupType Disabled -Name "TokenBroker"
Set-Service -StartupType Disabled -Name "UsoSvc"
Set-Service -StartupType Disabled -Name "TabletInputService"
Set-Service -StartupType Disabled -Name "DPS"
Set-Service -StartupType Disabled -Name "iphlpsvc"
Set-Service -StartupType Disabled -Name "NcbService"
Set-Service -StartupType Disabled -Name "Spooler"
Set-Service -StartupType Disabled -Name "PcaSvc"
Set-Service -StartupType Disabled -Name "LanmanServer"
Set-Service -StartupType Disabled -Name "SysMain"
Set-Service -StartupType Disabled -Name "lmhosts"
shutdown /r /t 0

Then launch using Powershell ~/Desktop and then .\stripwindows.ps1

Issues fixed

Flickering textures or invisible objects

Enable video.untrimmed_dynamic_cbuffers=1[5]
  1. Shut down virtual machine
  2. Click on Control Center, go to the virtual machine settings and then click "Hardware > Boot Order > Advanced Settings > Boot flags"
  3. Paste the following text in the "Boot flags" field: video.untrimmed_dynamic_cbuffers=1
  4. Run the game

This fix affects several games including:

References