Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4578776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:33:00+00:00 2026-05-21T20:33:00+00:00

A game Im working on has several XML files it uses to manage sprite

  • 0

A game I”m working on has several XML files it uses to manage sprite animations. Currently when I create an instance of a sprite I load it up into an XDocument once and keep it in a cache so that if I need to load it again I can just grab what is arlready in memory.

I do this very often in-game as I create animated sprites and such, going through its definitions like so:

var definitions = doc.Document.Descendants(name);
foreach (var animationDefinition in definitions)

So my question is, is this acceptable on a mobile phone? Say iPhone 3GS/iPhone 4/Windows Phone 7/Android? I use MonoTouch in ANdroid and iPhone while WP7 has its own .Net running.

The reason I ask is currently I don’t load that many animated sprites up but as I do more and more I’m worried it will start hurting performance. I figure it might be best to change my design ideas now than wait to suffer at a later date.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:33:01+00:00Added an answer on May 21, 2026 at 8:33 pm

    I would simply test what’s faster (reading it again an again using a SAXParser or storing it in Memory using DOM).

    Maybe it also makes sense to save the read data from your XML-File in something like an Array/Vector/Class so you don’t need to parse the XML File over and over again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a game, and I need to load multiple image files (png,
I'm working on a game (C#) that uses a Robocode-like programming model: participants inherit
I'm working on a game where I create a random map of provinces (a
I've been working on an iPhone for several months. It's a 2d shooting game
I'm working on a game that has simple pixel-art sprites. Since I'm planning to
I'm working on a game, which has score based on a JavaScript countdown: the
I am planning on working on a game that has a PHP back-end to
I'm working on a game which uses Game Center for multiplayer gaming. Now the
Alright so here is my issue. I'm working a game engine that will eventually
I'm working on a simple multiplayer game in which 2-4 players are placed at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.