Jump to content
  • Advertisement
Sign in to follow this  
lask1

OpenGL Textures stealing my memory!(OpenGL)

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

Hi guys,

 

It has been awhile since I last posted. I wouldn't exactly call the project that I am working on a game however, I am using OpenGL ES 2 in C++ to take advantage of the gpu on a device that really does not have that many resources to use. Even with OpenGL my program seemed to be running slow just because so many polygons were on the screen so what I have done is prebaked all the graphics to a texture during runtime and then displayed them as a texture. When I am prebaking a large amount of textures during runtime I run into memory problems since all these textures are filling up all the gpu memory.

 

My Question

What I am asking is if anyone can just throw me suggestions about reducing the memory of these textures that are generated at runtime. I apologize for being so vague with my question.

 

Thanks,

 

John

 

EDIT

 

I have tried prebaking the graphics right before they appear on the screen and destroying them as they leave and although this works I would like to avoid it. It may also be useful to know that I am using a FBO.

Edited by lask1

Share this post


Link to post
Share on other sites
Advertisement

Here's some things you can try

 

1. make the render targets smaller

2. use compressed render targets

3. re-use render targets have disposable data

4. pre-bake the graphics offline instead of at run-time

Share this post


Link to post
Share on other sites

Thanks for the reply! Unfortunately I have to prebake the graphics at runtime since they will be dynamically changing everytime I start up the machine and will dynamically change overtime but Ill give your other points a look. Thank you and anyone else have an more suggestions?

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!