Windows 11 Optimization for Realtime Applications

This document outlines recommended optimizations for a Motive PC operating in real-time interactive applications.

General Purpose Operating Systems (GPOS) like Windows are designed to maintain user responsiveness with many programs and services running, while real-time operating systems (RTOS) are designed to run critical applications reliably and with precise timing. A GPOS can handle multiple tasks concurrently but is not ideal for important, time-sensitive applications due to latency and synchronization issues. A GPOS can also operate without time constraints, so tasks may sometimes fail or take longer to execute. For this reason, it may be necessary to optimize Windows 11 to improve performance in Motive.

These optimizations involve disabling various Windows security features, so it is crucial to ensure that the PC is isolated from the internet or other potential sources of malware.

Local Group Policy Editor

Many of the recommended optimizations are completed using Window’s Local Group Policy Editor. To open this program:


  1. From the Windows search bar, type CMD.

  2. Run Command Prompt as administrator.

  3. At the command line, type gpedit.msc and press enter.

  4. This will open the Local Group Policy Editor window.

Local Group Policy Editor is available only with a Windows Professional License.

Disable Firewall

Set a Local Group Policy to disable Private, Public, and Domain firewalls.

Once these policies are implemented, the firewall cannot be re-enabled by any other means.


  1. Open Window’s Local Group Policy Editor.

  2. Navigate to Computer Configuration -> Windows Settings -> Security Settings -> Windows Defender Firewall with Advanced Security.

  3. The Overview panel shows the current status of the firewall. Click Windows Defender Firewall Properties to change the state of the Domain, Private, and Public profiles to Off then click OK.

Disable Antivirus

Set a Local Group Policy to disable Microsoft Defender Antivirus.

Once this policy is implemented, the Windows Defender Antivirus cannot be re-enabled in Virus & Threat Protection.


  1. Open Window’s Local Group Policy Editor.

  2. Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Microsoft Defender Antivirus.

  3. Double-click Turn Off Microsoft Defender Antivirus.

  4. Select Enabled and click OK.

Disable Anti-malware

Use the following processes to disable anti-malware services.

Disable Real-time Protection


  1. Open Window’s Local Group Policy Editor.

  2. Navigate to: Computer Configuration -> Administrative Templates -> Windows Components -> Microsoft Defender Antivirus -> Real-time Protection.

  3. Double-click Turn off real-time Protection.

  4. Set the policy to Enabled and click OK.

Disable Defender Notifications With the OptiTrack_ForceDefenderOFF.bat Script

Save the following script to a batch file named OptiTrack_ForceDefenderOFF.bat, in the common Windows startup folder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp.

@cmd /c schtasks /Query /TN PauseDef 2>nul && schtasks /Run /TN PauseDef || powershell -c "$q=\"`n`n`t`t PAUSE DEFENDER `n`n\"; echo $q; Start-Process cmd.exe -ArgumentList ('/q '+$q+' /c schtasks.exe /create /ru \"%username%\" /sc once /tn PauseDef /tr \"wmic.exe /namespace:\\root\Microsoft\Windows\Defender path MSFT_MpPreference call set DisableRealtimeMonitoring=TRUE\" /sd 01/01/2030 /st 00:00:00 /it /rl highest /f & schtasks.exe /run /tn PauseDef') -Verb RunAs"

Prevent Anti-malware Service Executable from Scanning its Own Folder


  1. Go to Settings -> Update & security -> Windows Security -> Virus & Threat Protection.

  2. Click Manage Settings at the bottom of the screen.

  3. Scroll to the Exclusions section and click Add or remove exclusions.

  4. Navigate to C:\Program Files\Windows Defender.

  5. Click the Select Folder button.

  6. Restart the computer to decrease the RAM usage by the Antimalware Service Executable in Task Manager Processes.

Disable Windows Notifications

Stop notifications from Windows and installed applications.


  1. Right-click on the clock on the Task Bar to open the Notifications panel.

  2. Select Notification Settings.

  3. Set Notifications to Off.

  4. Turn Do Not Disturb On.

  5. Scroll through the list of Notifications from apps and other senders and turn Off any that are set to On.

  6. At the bottom of the list, click Additional Settings.

  7. Deselect all options in the Additional Settings list.

Windows Task Scheduler

Stop scheduled tasks from running.

Disable All Scheduled Tasks


  1. Open the Windows Task Scheduler application.

  2. Select all the task in the Task Scheduler Library list.

  3. Right-click and select Disable.

Disable all Windows Defender Tasks


  1. Open the Windows Task Scheduler application.

  2. Navigate to Microsoft -> Windows -> Windows Defender.

  3. Select all the tasks in the list.

  4. Right-click and select Disable.

Disable Startup Applications

Stop unnecessary applications from loading at startup.


  1. Open the Windows Task Manager application.

  2. Click the Startup apps tab button.

  3. Disable all unnecessary startup apps.

DO NOT disable OptiTrack_ForceDefenderOff.bat.

Disc Drive Optimizations

  • Turn off HDD/SSD Encryption (for example, BitLocker Drive Encryption Service).

  • Turn off HDD/SSD Compression.

OpenGL setting in NVIDIA Control Panel

  1. Open Nvidia Control Panel and Navigate to 3D settings -> Manage 3D Settings

  2. Select the Global Settings tab.

  3. Set OpenGL rendering GPU to the dedicated GPU card.

Network Settings

Use the recommended network configuration.

Network Topology

  • Use Static IPs for Camera and Streaming Network Interface Cards (NICs)

  • Isolate the following on three different NICs:

  1. Local Area Network

  2. Incoming camera data

  3. Outgoing streaming data

Camera and Streaming Network Interface Card (NIC) Configuration Settings

Type Network in the Windows search bar to find and open the Control Panel to View Network Connections. The image below shows the three NICs specified above.

Configure Static IP

  1. Double-click or right-click the NIC you wish to configure and select Properties.

  2. From the Properties screen, disable all protocols except IPv4.

  3. With IPv4 selected, click the Properties button.

  4. Select Use the following IP address:

    1. For the NIC connected to the Camera network, enter IP address

    2. For the NIC connected to the realtime network, enter IP address

  5. Enter for the Subnet mask.

  6. Click OK to save and return to the Properties window.

Configure NIC settings

Set the following properties to the value specified:

  • Interrupt Moderation = Disabled

  • Interrupt Moderation Rate = Disabled

  • Jumbo Packets = Disabled

  • Max Number RSS Queues = 16

  • Receive Buffers = 4096 (max)

  • Receive Side scaling = Enabled

  • Speed and Duplex = Auto-Negotiate

  • Transmit Buffers = 16384 (max)


  1. From the Properties window, click the Configure... button to customize NIC settings.

  2. Click the Advanced tab.

  3. To update a setting, select it from the Property: list and update the Value field on the right.

  4. Update all of the settings listed above.

  5. Click the Driver tab.

  6. Click Disable, then Enable to restart the NIC with the new settings.

Use the settings supplied by your IT department to connect to corporate or institutional networks.

Set Motive.exe Priority

Customize the Motive desktop shortcut to launch the program with high priority.

  • On the desktop, right-click the Motive shortcut and select Properties.

  • Select the Shortcut tab.

  • Copy and paste the text below into the Target field:

%windir%\system32\cmd.exe /c start "" /High /max "C:\Program Files\OptiTrack\Motive\Motive.exe"
  • Set the Run property to Maximized.

  • Click OK to save your changes and close the window.

Last updated