ASP.NET AJAX Lessons Learned

by Cameron Albert 25. September 2007 17:40

I used the Microsoft ASP.NET AJAX Extensions pretty heavily for the user interface of my persistent browser based game Perenthia and after about two weeks of live server testing I have discovered some performance issues that may cause me to abadon the use of the UpdatePanel for straight AJAX calls using JSON objects.

The reason being is that I have UpdatePanels that update various sections of the game and instead of just setting a value as supplied from the server they send back the entire HTML blog of changed text. For orderinary web sites this wouldn't be a problem and in fact when allow them to perform faster. Since Perenthia is a little more interactive in so much as players can move around, which are post backs, and do battle, which are post backs, sending all this HTML back is causing too much bloat.  I am thinking of creating some very simple Javascript objects that I can send down from the server that will contain only values that need to be changed rather than HTML. This way I am not sending down tables, spans and the like.

Anyway, we'll see it how it goes, hopefully it will improve performance of the game because that is lacking right now. 

Tags: , , ,

ASP.NET Development | Game Development | General | Perenthia PBBG

Powered by BlogEngine.NET 1.5.0.7
Modified Theme by Mads Kristensen

About the Author

CameronAlbert.com I am Senior Software Development Consultant specializing in Silverlight, WPF and the Microsoft .NET Framework. 

I have released an iPhone game called the Adventures of Puppyman that was built using ExEn and am currently working on a WP7 and iPhone version of Perenthia soon to be released.

View Cameron Albert's profile on LinkedIn
See how we're connected

Follow cameronalbert on Twitter

 

Recommended Books

Silverlight 4 Business Application Development - Beginner's Guide:

http://www.packtpub.com/microsoft-silverlight-4-business-application-development-beginners-guide/book

Microsoft Silverlight 4 Business Application Development: Beginner’s Guide