Commit 9ecc9ad
committed
Use timeBeginPeriod on Windows
We need a high resolution timer so we can wake up at the right time when we
are pacing out packets, etc. Without this call, we get the crappy default
resolution. Up to this point it looks like we have just been getting saved
by some other code in the game, or Steam client, calling this for us. But
really we need to do it ourselves.
https://randomascii.wordpress.com/2020/10/04/windows-timer-resolution-the-great-rule-change/
P4:65713831 parent d3b08d6 commit 9ecc9ad
File tree
1 file changed
+12
-0
lines changed- src/steamnetworkingsockets/clientlib
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2349 | 2349 | | |
2350 | 2350 | | |
2351 | 2351 | | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2352 | 2363 | | |
2353 | 2364 | | |
2354 | 2365 | | |
| |||
2505 | 2516 | | |
2506 | 2517 | | |
2507 | 2518 | | |
| 2519 | + | |
2508 | 2520 | | |
2509 | 2521 | | |
2510 | 2522 | | |
| |||
0 commit comments