iMX53 - OpenGL ES 2.0 - GL_OUT_OF_MEMORY

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX53 - OpenGL ES 2.0 - GL_OUT_OF_MEMORY

1,165件の閲覧回数
jasontrice
Contributor I

Anybody know of a good way to monitor OpenGL memory?

 

There's no real warning until you run out and try to render.  Then it's too late.  I stack a bunch of textures up, push them to GL, it smiles sweetly without a hint of trouble from

   glCheckError()

 

The last several textures (2-3 MB worth) seem fine but generate GL_OUT_OF_MEMORY only after they are bound to geometry and then drawn.

 

Anybody out there have a good method to monitor memory use inside OpenGL without babysitting every texture/buffer creation ?  I don't really know the state of memory use by the time I get control of it, so "Hey, just count the memory you're using" is not very viable.

 

Thanks,

Jason

タグ(1)
0 件の賞賛
返信
0 返答(返信)