Log in to create a new thread
Codename Entertainment Forums > Legacy Games > Mystic Guardians > General Discussion > Memory usage
| Memory usage
| |
|
3 Posts
|
Link to post
- Posted February 9th 2012 at 7:11 AM
Greg WilcherWhy does this game use HUGE amounts of memory? It climbs up to over 1mill. I've seen as high as 1.3mill. Bushwhacker only uses around 500k. Is the anyway to fix this?
|
|
407 Posts
|
Link to post
- Posted February 9th 2012 at 8:22 AM
Benedikt AlbertI don't think, there is. It's probably related to how the Flash Player stores all those assets from Mystic Guardians (and those are really numerous for a Flash application).
|
|
886 Posts
|
Link to post
- Posted February 9th 2012 at 9:28 AM
David Whittaker (CNE Dev)Last Edited February 9th 2012 at 9:29 AM Hi Greg,
The game caches all the graphics and animations when they are used for performance reasons. All of the game assets are vector graphics which are small in size but very slow to draw to the screen, when the game needs a new graphic it renders the vector graphic to a bitmap graphic which is large, but very fast to draw to the screen. The fast bitmap version is then kept in the cache so it doesn't have to be drawn slowly again. Since we have a very large number of graphics and animated characters the cache can get quite large as you play. So in short, to make the game run fast the game keeps a lot of graphics in memory ready for immediate use which uses a fair amount of memory. (these go away when the game is closed in case that was a concern). 1.3GB of memory usage is actually not considered huge though as the average computer bought in the last 5 years has between 4GB and 8GB of memory. So 1.3GB is in the 16% to 32% usage range which for a game is not bad. You may be still be thinking huge for a flash game, but it is important to distinguish between a "flash game" and a full sized game built and running on the flash platform. -David |
|
Log in to reply to this thread! | |