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:
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252Fugh25xaIBQcBG3KTrngZ%252FOpen%2520Windows%2520Local%2520Group%2520Policy%2520Editor.png%3Falt%3Dmedia%26token%3Dfc41180e-8bd0-44d5-8817-ca8e4ee7d0f4&width=768&dpr=4&quality=100&sign=271a1a2c&sv=1)
Steps:
From the Windows search bar, type CMD.
Run Command Prompt as administrator.
At the command line, type gpedit.msc and press enter.
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.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252F42cu9SM0z2sdQaOreGze%252FLocal%2520GPEditor%2520-%2520Firewall.png%3Falt%3Dmedia%26token%3D19dccd1f-59ea-43bc-8095-2c530894d0b7&width=768&dpr=4&quality=100&sign=d52bed0a&sv=1)
Steps:
Open Window’s Local Group Policy Editor.
Navigate to Computer Configuration -> Windows Settings -> Security Settings -> Windows Defender Firewall with Advanced Security.
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.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252F9Ee43RkpNKk3DaoimPqq%252FWindows%2520Firewall%2520-%2520Domain%2520settings.png%3Falt%3Dmedia%26token%3D76d3a889-95d6-4a6e-b109-f544a47fd6e0&width=768&dpr=4&quality=100&sign=d3265cb2&sv=1)
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FbituAkHfQaxCECKfZpFD%252FWindows%2520Firewall%2520-%2520Private%2520settings.png%3Falt%3Dmedia%26token%3Dceab01b0-7938-46e1-9421-df908f7ca158&width=768&dpr=4&quality=100&sign=8da0c64c&sv=1)
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252Fdk6c2npixVJZuzIS6gf5%252FWindows%2520Firewall%2520-%2520Public%2520settings%2520.png%3Falt%3Dmedia%26token%3Df089ff7d-23bc-439e-8e08-830b03087ea5&width=768&dpr=4&quality=100&sign=a6c090a8&sv=1)
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.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FKp3BxT7RP4VjDz6l8QRE%252FLGPEditor%2520-%2520MS%2520Anti-virus.png%3Falt%3Dmedia%26token%3Db830c79c-6546-4074-a6d7-39bd13646ec4&width=768&dpr=4&quality=100&sign=fcd1e6f3&sv=1)
Steps:
Open Window’s Local Group Policy Editor.
Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Microsoft Defender Antivirus.
Double-click Turn Off Microsoft Defender Antivirus.
Select Enabled and click OK.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252F7mqpfvezPCa9S0gfBn0h%252Fimage.png%3Falt%3Dmedia%26token%3D3396094c-6bea-4289-bbc0-d02a2b1f22e9&width=768&dpr=4&quality=100&sign=43238df8&sv=1)
Disable Anti-malware
Use the following processes to disable anti-malware services.
Disable Real-time Protection
Steps:
Open Window’s Local Group Policy Editor.
Navigate to: Computer Configuration -> Administrative Templates -> Windows Components -> Microsoft Defender Antivirus -> Real-time Protection.
Double-click Turn off real-time Protection.
Set the policy to Enabled and click OK.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FSK2FV3oSKOoXULyYozqr%252FLGPEditor%2520-%2520turn%2520off%2520MS%2520Antivirus%2520property.png%3Falt%3Dmedia%26token%3Dc5ba8514-aa7d-4dfd-8041-ebd9c1ec04dc&width=768&dpr=4&quality=100&sign=6735c11f&sv=1)
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.
Prevent Anti-malware Service Executable from Scanning its Own Folder
Steps:
Go to Settings -> Update & security -> Windows Security -> Virus & Threat Protection.
Click Manage Settings at the bottom of the screen.
Scroll to the Exclusions section and click Add or remove exclusions.
Navigate to C:\Program Files\Windows Defender.
Click the Select Folder button.
Restart the computer to decrease the RAM usage by the Antimalware Service Executable in Task Manager Processes.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252Fx1kglrCqp5Mj5peSwltk%252Fimage.png%3Falt%3Dmedia%26token%3Da3bbc732-2ede-497d-a42e-d0f010a8dd26&width=768&dpr=4&quality=100&sign=5ef1ffe1&sv=1)
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FibbOKrB53QJMvcIGEOWd%252FWin%2520Security%2520Virus%2520Exclusions.png%3Falt%3Dmedia%26token%3D9ae676d7-701d-446b-b164-482dfe1c1681&width=768&dpr=4&quality=100&sign=2de32022&sv=1)
Disable Windows Notifications
Stop notifications from Windows and installed applications.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252Fyv4O3FFhYfxTLMAX4SZL%252FWindows%2520System%2520Notifications.png%3Falt%3Dmedia%26token%3D5874215c-20ef-463d-93c0-e8c2f35eb6af&width=768&dpr=4&quality=100&sign=f59a5d0&sv=1)
Steps:
Right-click on the clock on the Task Bar to open the Notifications panel.
Select Notification Settings.
Set Notifications to Off.
Turn Do Not Disturb On.
Scroll through the list of Notifications from apps and other senders and turn Off any that are set to On.
At the bottom of the list, click Additional Settings.
Deselect all options in the Additional Settings list.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FJWQqNcoidofdoBME1FSy%252FWindows%2520Notifications%2520Additional%2520settings.png%3Falt%3Dmedia%26token%3D823c5bcc-217f-4798-bdcf-f3e2aab6aff0&width=768&dpr=4&quality=100&sign=d0d3fc5f&sv=1)
Windows Task Scheduler
Stop scheduled tasks from running.
Disable All Scheduled Tasks
Steps:
Open the Windows Task Scheduler application.
Select all the task in the Task Scheduler Library list.
Right-click and select Disable.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FBKOymCoPpJ3dYoP7SFxz%252Fimage.png%3Falt%3Dmedia%26token%3Ddb25e869-6ed9-481b-80c9-c9c500827b38&width=768&dpr=4&quality=100&sign=3f83a49d&sv=1)
Disable all Windows Defender Tasks
Steps:
Open the Windows Task Scheduler application.
Navigate to Microsoft -> Windows -> Windows Defender.
Select all the tasks in the list.
Right-click and select Disable.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FCdZvrs1gjTc3Uwfie52S%252Fimage.png%3Falt%3Dmedia%26token%3D5d88e503-60e9-4eff-bc66-906d6b0f89ab&width=768&dpr=4&quality=100&sign=c9827277&sv=1)
Disable Startup Applications
Stop unnecessary applications from loading at startup.
Steps:
Open the Windows Task Manager application.
Click the Startup apps tab button.
Disable all unnecessary startup apps.
DO NOT disable OptiTrack_ForceDefenderOff.bat.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FU4gMeVbFdi0kDs21ijtF%252Fimage.png%3Falt%3Dmedia%26token%3Db698fbe1-3124-4f92-b22e-7c4c913a247b&width=768&dpr=4&quality=100&sign=d1dec7ba&sv=1)
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
Open Nvidia Control Panel and Navigate to 3D settings -> Manage 3D Settings
Select the Global Settings tab.
Set OpenGL rendering GPU to the dedicated GPU card.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FnYXARBucad9SiuGwPswX%252FNVIDIA%2520OpenGL%2520Rendering.png%3Falt%3Dmedia%26token%3Dcd4b80bd-2736-47b5-800a-7a0afa07cc32&width=768&dpr=4&quality=100&sign=133418ec&sv=1)
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:
Local Area Network
Incoming camera data
Outgoing streaming data
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FvLpaMefFXwbhDlPAmTEp%252Fimage.png%3Falt%3Dmedia%26token%3Df5097787-9d32-4401-a14b-028821c166b9&width=768&dpr=4&quality=100&sign=4a790cf7&sv=1)
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.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FV8mYwaWhpsufK6GLZ42T%252Fimage.png%3Falt%3Dmedia%26token%3D0b5fb136-cc5e-406e-b746-4035c94abc4e&width=768&dpr=4&quality=100&sign=4c98b6fb&sv=1)
Configure Static IP
Double-click or right-click the NIC you wish to configure and select Properties.
From the Properties screen, disable all protocols except IPv4.
With IPv4 selected, click the Properties button.
Select Use the following IP address:
For the NIC connected to the Camera network, enter IP address 192.168.10.1
For the NIC connected to the realtime network, enter IP address 192.168.20.1
Enter 255.255.255.0 for the Subnet mask.
Click OK to save and return to the Properties window.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FQdghcy5I937jBbotfN8C%252FIP%2520Settings%2520for%2520Motive%2520PC.png%3Falt%3Dmedia%26token%3D4128d8a7-5817-4b76-8299-5e42867ad4e9&width=768&dpr=4&quality=100&sign=14728757&sv=1)
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)
Steps:
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252FBorhWSPA1oNToDKw8Dm6%252FNetwork%2520-%2520Configure%2520NIC.png%3Falt%3Dmedia%26token%3D7a4d31a9-9341-4d14-93df-fa433a611cfe&width=768&dpr=4&quality=100&sign=1f48c88d&sv=1)
From the Properties window, click the Configure... button to customize NIC settings.
Click the Advanced tab.
NIC Advanced Configuration Properties To update a setting, select it from the Property: list and update the Value field on the right.
Update all of the settings listed above.
Click the Driver tab.
Click Disable, then Enable to restart the NIC with the new settings.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252F1pprp3w5x1EDk7T32toz%252FNIC%2520-%2520Disable%2520HIGHLIGHTED.png%3Falt%3Dmedia%26token%3Dabd593ae-6c9a-4838-93f4-0625ccefca21&width=768&dpr=4&quality=100&sign=ceb60733&sv=1)
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.
![](https://docs.optitrack.com/~gitbook/image?url=https%3A%2F%2F2867085706-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FuHClgoIWDmmoXSr2eD9q%252Fuploads%252Fy3d4NetqLqtZELmtA0MU%252FMotive%2520Shortcut%2520Properties.png%3Falt%3Dmedia%26token%3D2cba6374-437b-4ab4-8e8e-fd6448921a19&width=768&dpr=4&quality=100&sign=32b8e9d4&sv=1)
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:
Set the Run property to Maximized.
Click OK to save your changes and close the window.
Last updated