[AD] [ alleg-Bugs-2954858 ] Limit number of FBOs in use at a time

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #2954858, was opened at 2010-02-19 09:52
Message generated for change (Settings changed) made by elias
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2954858&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: 4.9
Status: Open
Resolution: None
Priority: 1
Private: No
Submitted By: Elias Pschernig (elias)
Assigned to: Nobody/Anonymous (nobody)
Summary: Limit number of FBOs in use at a time

Initial Comment:
With OpenGL, each time al_set_target_bitmap() is called on a video bitmap we automatically create an FBO for drawing into it. However it seems some OpenGL drivers have a limit on the number of FBOs allowed at a time. This means when you load 1000ds of textures at the start and all al_set_target_bitmap() on each to for example do some small conversion, it will inexplicably fail with such drivers. For now http://docs.liballeg.org/opengl.html#al_remove_opengl_fbo can be used to fix this (like in my personal code), but a better solution might be to simply limit the number of FBOs to a sane value, maybe 50, and after that start re-using them.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2954858&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/