Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dave

Storing Large Amounts Of Data...

This topic is 5322 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is the best method for reading and writing large amounts of data from files in C++ with DirectX 9 (extended/or not)? I am currently reading the data from text files using fscanf, this appears tobe fine for now but as i will need more and more information about directx items int he future, the command will get extensive. What is the best way of structuring the data in the file. XML/HTML/Structure writing. I am reading the variables from files straight into structures within classes. regards, Ace.

Share this post


Link to post
Share on other sites
Advertisement
it sounds as though you are thinking about certain circumstances and are worried about it.

are you wanting to be loading stuff continually (eg loading a level as you move through it) or loading a whole chunk of stuff quickly at one time (eg loading a level before beginning playing). You''ll need to give more context. XML isn''t the most concise of formats. It compresses well but then you have to uncompress it too.

look at zhang''s code from the March edition of C/C++ User''s Journal for how to link up classes with XML format.

Share this post


Link to post
Share on other sites
The idea is to load a level prior to playing it, not to load it on the fly.

Any more help?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!