xna download website source code

Posted by Emre Canbazoglu on Game Development See other posts from Game Development or by Emre Canbazoglu
Published on 2011-01-13T10:50:19Z Indexed on 2011/01/13 10:59 UTC
Read the original article Hit count: 445

Filed under:
|

I have to download the html code of a web site during the game. I am taking the poster url of a movie from the imdb web site by scrapping the html ( also other informations ). I have to do the download process many times during the game for different movies. I can download and scrap the html but downloading the html takes too much time and it causes the game to slow down(freeze while downloading). How can I solve this problem? My one approach is to download and scrap all the information and store them in a database before the game and during the game access this information from the database. I think this will work properly but that is not what I exactly want. It would be better if it is dynamic. I also thought of using multi-threading but I am a bit confused about how to implement threading in xna. I read some articles about it but it is not so clear. I mean when should I start the thread and what about the update function etc. I need your help guys

© Game Development or respective owner

Related posts about XNA

Related posts about multithreading