Register for your free account! | Forgot your password?

You last visited: Today at 18:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Conquer & Async

Discussion on Conquer & Async within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
LepEatWorld's Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 76
Received Thanks: 25
Question Conquer & Async

Someone provided me with a example script from a different source the other day for some information and I saw that they were using Asynchronous programming. My knowledge of C# is very basic and I'm trying to upgrade that so I started looking into it. I understand that it's very useful when running multiple operations at the same time, but my question stands on when and where should I be using it on Conquer.

The example that I receive was for Durability, I don't know if there's any point in doing it for that or not, since it's a simple subtraction method. I understand if it's pulling multiple things such as "Is attacking and durability is going down at the same time" but I'm not sure, I haven't really had an issue with that.

Would there be an issue or would it be an increase in productivity within the game? It's not like if 2 characters can't do the same thing at the same time. Should I be using it on all my methods or is there a chance that the server will start lagging if there's a lot of data being processed at the same time rather than a Stop-Read-Next?
LepEatWorld is offline  
Old 12/01/2022, 09:56   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Well, I wrote a skeleton server project that uses async-await patterns, if you wanted to take a look. There's also an article I wrote about multi-threaded game server design on that same page. You can check it out here: .

Generally, yeah. The tldr is: there would be problem and it does add complexity, but you could get better performance if done correctly. The async-await pattern I referenced is difficult to understand in C#, but it's getting more and more common. And then there're some async classes in C# you can use in synchronous code, but it's pretty inconsistent.
Spirited is offline  
Reply


Similar Threads Similar Threads
[C#] Async & Await
07/28/2016 - .NET Languages - 2 Replies
Mahlzeit Com, ich hätte da mal eine Frage bezüglich Async und Await. Ich selbst "lerne" erst seit 3 Wochen C# und verstehe noch nicht genau wann ich was aufrufen muss. Folgende Aufgabenstellung hab ich: Ich muss ein Ordner überwachen in dem wird alle 5 sec. reingeschaut ob sich dort neue Dateien befinden. (ohne events!) Sollte dies der Fall sein möchte ich mit einer Schleife die Dateien selektieren verarbeiten und wegschieben. Dies soll nebenbei laufen.
[Buying] &&&&&&&&&KAUFE STEAM ACCOUNT! &&&&&&&&&
06/07/2013 - Trading - 1 Replies
Hallo, bin nicht hier um groß zu traden,sondern möchte einen Steam Account kaufen. Fakten: Biete maximal 60€ PaySafeCard Es sollten viele kleine Spiele sowie COD enthalten sein COD 7-9 sind Pflicht! Kein VAC/TAC/Valve o.Ä Bann!
&&&&&&&&&KAUFE STEAM ACCOUNT! &&&&&&&&&
06/07/2013 - elite*gold Trading - 0 Replies
Hallo, bin nicht hier um groß zu traden,sondern möchte einen Steam Account kaufen. Fakten: Biete maximal 60€ PaySafeCard oder kann es auch zu egold machen Es sollten viele kleine Spiele sowie COD enthalten sein COD 7-9 sind Pflicht! Kein VAC/TAC/Valve o.Ä Bann!
[Buying] &&&&&&&&&KAUFE STEAM ACCOUNT! &&&&&&&&&
06/07/2013 - Steam Trading - 0 Replies
Hallo, bin nicht hier um groß zu traden,sondern möchte einen Steam Account kaufen. Fakten: Biete maximal 60€ PaySafeCard Es sollten viele kleine Spiele sowie COD enthalten sein COD 7-9 sind Pflicht! Kein VAC/TAC/Valve o.Ä Bann!



All times are GMT +2. The time now is 18:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.