mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 03:39:00 +00:00
Fixed typo.
This commit is contained in:
parent
a241912e7a
commit
28e5c18f00
@ -1,3 +1,5 @@
|
|||||||
|
Please refer to [DelayNoMoreUnity](https://github.com/genxium/DelayNoMoreUnity) for a Unity rebuild with .net backend.
|
||||||
|
|
||||||
# Preface
|
# Preface
|
||||||
|
|
||||||
This project is a demo for a websocket-based rollback netcode inspired by [GGPO](https://github.com/pond3r/ggpo/blob/master/doc/README.md).
|
This project is a demo for a websocket-based rollback netcode inspired by [GGPO](https://github.com/pond3r/ggpo/blob/master/doc/README.md).
|
||||||
|
@ -100,7 +100,7 @@ bool RecvRingBuff::pop(RecvWork* out) {
|
|||||||
2. If "0 >= oldCnt", we need guard against another "pop" to avoid over-popping.
|
2. If "0 >= oldCnt", we need guard against another "pop" to avoid over-popping.
|
||||||
*/
|
*/
|
||||||
if (0 >= oldCnt) {
|
if (0 >= oldCnt) {
|
||||||
// "pop" could be accessed by either "GameThread/pollUdpRecvRingBuff" or "UvRecvThread/put", thus we should be proactively guard against concurrent popping while "1 == cnt"
|
// "pop" could be accessed by either "GameThread/pollUdpRecvRingBuff" or "UvRecvThread/put", thus we should be proactively guarding against concurrent popping while "1 == cnt"
|
||||||
++cnt;
|
++cnt;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user