Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Textures stealing my memory!(OpenGL)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 lask1   Members   -  Reputation: 795

Like
0Likes
Like

Posted 17 September 2013 - 03:47 PM

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, 17 September 2013 - 04:45 PM.


Sponsor:

#2 NickW   Members   -  Reputation: 313

Like
0Likes
Like

Posted 18 September 2013 - 12:53 AM

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



#3 lask1   Members   -  Reputation: 795

Like
0Likes
Like

Posted 18 September 2013 - 08:36 AM

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?






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS