Monday, April 5, 2010

FSD 2.0 r470

I finally spend some time to fix the game list.


Previous implematation of the list was mostly ok, just needed some cleanup.

ScnGames is still not fixed.

ContentList.xml has been reduced to the bare minimum : it contain the game id and game path, everything else will or is currently using the data file structure to get its information.



Instanciating a ContentItem with a path and game id will automatically extract everything it can and put in a download queue whatever it needs.



Design wise, i think that only the ContentItem should handle download. I started some work regarding this. It now implement observable pattern and observers and notified when background or boxart or title changed.This way there wont be any download code in scene.



Skin still need a way to report current download queue and download speed.



I did some performance test with the file structure, when sorting the complete game list with about 150 games in it. If we read the title file everytime, it takes about 15-20 secs before sort is completed which is pretty good if we consider that theres a lots of comparison happening there. (Proper code, with buffered title, run in less than 1 sec, some sorting is almost instant).



Last week, we also figured out that we need to limit the fps to 60 as lots of tearing was happening in the menu. At 60 fps animations are really smooth!



Next steps :

Get ScnMain cleaned. Make a proper xex parser.

No comments:

Post a Comment