Bastion
Bastion
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
I'll test doing that. Thank you very much for the tips!
24 replies
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
thanks for the tip 😄
24 replies
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
eg: player 1 ( task 1 = read from stream, task 2 = write from queue to stream)
24 replies
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
Hmm, I hadn't thought of that. because the strategy I use is to start a task to read/write for each connection. I think it's not the best way to do this, so I was looking for alternative solutions for this
24 replies
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
Then I'm afraid of, for example, reaching 200 simultaneous connections and ending up causing problems with excessive memory allocations with tasks.
24 replies
CC#
Created by Bastion on 2/16/2024 in #help
Task.Delay vs. SpinWait.SpinOnce
it was more like a game server, doing the main loop to accept connections from clients, then processing in another task.
24 replies