Difference between revisions of "Talk:Smooth Quake"

From QWiki
Line 68: Line 68:
 
'''Issues'''
 
'''Issues'''
 
* Network: lag spikes
 
* Network: lag spikes
'''<big>-</big>''' console > hud_net_show 1. If "dev" is 1ms+, type cl_proxyaddr in console, write IPs down and try the below proxy strategy.<br>
+
'''<big>-</big>''' console > hud_net_show 1. If "dev" (deviation) is 1ms+, type cl_proxyaddr in console, write IPs down and try the below proxy strategy.<br>
 
'''<big>-</big>''' Proxy: Server Browser > select a server > press 'enter'<br>
 
'''<big>-</big>''' Proxy: Server Browser > select a server > press 'enter'<br>
In the help shortcut keys box, "Route" indicates how many proxies were found. Press 'n'. If "dev" improves, some proxy gives issues.<br>
+
In the help shortcut keys box, "Route" indicates how many proxies were found. Press 'n'. If dev improves, some proxy gives issues.<br>
 
With the IPs you wrote, set cl_proxyaddr with just one until you find wich one is bad. Sb_ignoreproxy can exclude it from future updates.<br>
 
With the IPs you wrote, set cl_proxyaddr with just one until you find wich one is bad. Sb_ignoreproxy can exclude it from future updates.<br>
 
'''<big>-</big>''' Network Throttling: enabled reduces latency in ethernet driver but if you don't exclude cpu0 from ezQuake this will cause alot of deviation.<br>
 
'''<big>-</big>''' Network Throttling: enabled reduces latency in ethernet driver but if you don't exclude cpu0 from ezQuake this will cause alot of deviation.<br>
If you still have high "dev" with the proxies strategy, disable this to see if "dev" improves:<br>
+
If you still have high dev with the proxies strategy, disable this to see if it improves:<br>
 
Winkey+R > regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile > NetworkThrottlingIndex = ffffffff (Hex value to disable).<br>
 
Winkey+R > regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile > NetworkThrottlingIndex = ffffffff (Hex value to disable).<br>
If you got no improvement then enable it again ([10-70] range in decimal. default 10).<br>
+
If there is no improvement, enable it again ([10-70] range in decimal. default 10).<br>
 
'''<big>-</big>''' Interrupt Moderation: if you feel lag even with low ping, disable in ethernet properties<br>
 
'''<big>-</big>''' Interrupt Moderation: if you feel lag even with low ping, disable in ethernet properties<br>
 
* Network: packet loss
 
* Network: packet loss

Revision as of 14:53, 28 June 2023

WORK IN PROGRESS: JUNE 2023

Hardware

  • Monitor

IPS panel with 240Hz minimum is recommended.
TN has bad colors and viewing angles, VA has slow response time and Oled has higher input lag.
The pixels response time must stay inside de refresh cycle (1000/Hz) to avoid blur and take full advantage of the monitor's Hz.
Example: the refresh cycle of a 240hz monitor is 1000/240=4.16ms, if the pixel response time is above that, its going to generate blur.
How to know the pixel response time for my monitor? Rtings has some reviews. Order them by rise/fall time.
Some monitors have a fast enough response time but at the cost of ghosting. Take this into account.
UFO Test shows how your monitor responds so you can select a proper overdrive setting.
Example products: Asus VG279QM Aperture Grille's review.

  • Mouse

Any modern mouse should be ok.
Most mouse companies add smoothing after a certain DPI level (more info) but a few brands have smoothing disabled for all DPI ranges.
1000Hz and DPI of 1600 minimum is recommended. Use only native DPI values to avoid interpolation.
A good sensor should not have problems such as smoothing, angle snapping, jitter and DPI deviation.
Example products: Pixart 3389 sensor (1600 DPI no smoothing added).
Battle(non)sense DPI analysis.

Note: with 1000Hz+ mouse and keyboard you should use separate dedicated usb chips or a PCIe USB card.

  • Keyboard

1000Hz minimum is recommended simply because it has lower input lag than regular 125hz keyboards. Explanation.
Example products: EVGA Z20 and Corsair K70 Rapidfire/Champion models are fast but expensive.


Configuration

  • BIOS

- Spread Spectrum ; Memory Scrambler: Disable
- Extreme Memory Profile (XMP): Enable

  • Windows

- Start > Settings > Privacy > Background apps > Disable all but "Windows Security"
- Control Panel > Mouse > Pointer Options > Untick 'Enhance pointer precision' and leave pointer speed at 6th notch.
- Control Panel > Power Options > High performance > Change plan settings > Change advanced settings > PCI Express > ASPM: disable
- MSI Interrupt Mode Utility: Change supported devices to MSI. A negative value means it's working. Do not enable devices if the supported modes field doesn't include MSI. Interrupt priority should be undefined for all. Windows sets SATA to high and some ethernet drivers too.

  • NVIDIA

- NVCP: Create a new profile for ezquake and disable "Threaded Optimization"
- NvidiaProfileInspector: change the following value in section "Other" > Maximum Frames Allowed = 1

  • AMD/ATI

(someone write something)


ezQuake Launch
You can change Windows power plan to High Performance while playing and restore its value back to Balanced when finished.
Open command line and type powercfg -l to see their GUID. They should match the ones below.
Devices interrupts go to cpu0 by default. Excluding it for ezQuake will improve fps and stabilize frametime. Cpu affinity calculator shows you what hexadecimal value you need to set in the cmdline after the /affinity (replace the word HexVal with the value you got from the calculator). Open notepad and place these 3 lines (without the comment), change game path, and save as bat extension.

powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (high performance power profile)
start "" /wait /affinity HexVal "D:\QW\ezquake" -mem 1024
powercfg -s 381b4222-f694-41f0-9685-ff5bb260df2e (balanced power profile)


ezQuake Settings in progress...
cl_maxfps 1001

hud_frametime
hud_ping
hud_speed


Issues

  • Network: lag spikes

- console > hud_net_show 1. If "dev" (deviation) is 1ms+, type cl_proxyaddr in console, write IPs down and try the below proxy strategy.
- Proxy: Server Browser > select a server > press 'enter'
In the help shortcut keys box, "Route" indicates how many proxies were found. Press 'n'. If dev improves, some proxy gives issues.
With the IPs you wrote, set cl_proxyaddr with just one until you find wich one is bad. Sb_ignoreproxy can exclude it from future updates.
- Network Throttling: enabled reduces latency in ethernet driver but if you don't exclude cpu0 from ezQuake this will cause alot of deviation.
If you still have high dev with the proxies strategy, disable this to see if it improves:
Winkey+R > regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile > NetworkThrottlingIndex = ffffffff (Hex value to disable).
If there is no improvement, enable it again ([10-70] range in decimal. default 10).
- Interrupt Moderation: if you feel lag even with low ping, disable in ethernet properties

  • Network: packet loss

- console > setinfo dupe 2 ([1-3] range. set it in cl_onload for permanent use).
Note: connection to a proxy could also be the cause of packet loss.

  • Performance: unstable FPS

- Uninstall or disable any RGB software (monitor; mouse; keyboard). It causes issues with the system.
- Threaded Optimization: enable if you can't keep steady fps with your ezQuake config. Recommended to disable as a just in case but it works.
- NVCP > ezQuake profile > Power management mode > prefer maximum performance (sets gpu at max frequency).
If the GPU jumps frequency often it will cause stutters (leads to a small fps drop). You can check this using MSI Afterburner.
If the GPU jumps to boost frequency and down to max frequency often you can lock the gpu at boost but it will consume more electricity.
Type gtx or rtx depending on wich GPU you have in the search below (CTRL+F).
- Winkey+R > regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class > CTRL+F > gtx (or) rtx > New DWORD > DisableDynamicPstate = 1


Advanced Windows Settings
- Interrupt affinity: You can set devices interrupts to a specific cpu. Mouse readings could improve if you isolate it. Usually the least used cpus are the last ones. With Hyper-Threading you need to assign physical cpus rather than logical ones. USB devices can't bet set individually.
In device manager select your mouse then view devices by connection and the branch goes up to XHCI. Select XHCI in the affinity tool.