Jump to content
  • Advertisement
Sign in to follow this  
rajesh_nest

Memory Optimization

This topic is 3661 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

I am developing an Image decoder for embedded processor, whose main memory is 32MB. Apart from the Image decoder,One more application is running which needs huge memory.So available memory is too short enough to decode Images of large size (> 500k). Somebody suggested to use heap memory for small allocations and a static buffer for larger allocation, inside Decoder code. In first place, It is not that easy to implement. Is this best way to optimize the memory? Do you have any other suggestions?

Share this post


Link to post
Share on other sites
Advertisement
Just sounds to me like you can't load the whole image in a single go, so use smaller chunks.

Share this post


Link to post
Share on other sites
Quote:
Original post by Dave
Just sounds to me like you can't load the whole image in a single go, so use smaller chunks.



I am doing the same. But for larger images, it is still same issue - out of memory.

No my question is, How can we optimize the memory?





Share this post


Link to post
Share on other sites
What does "optimize the memory" mean?

Why can't a 500k allocation fit into 32MB of space?

If you can't fit the whole image into memory, process just a part of it at a time. This solves your problem.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!