[AD] [ alleg-Feature Requests-2855081 ] retained drawing

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


Feature Requests item #2855081, was opened at 2009-09-09 10:04
Message generated for change (Tracker Item Submitted) made by elias
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355665&aid=2855081&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: None
Status: Open
Priority: 5
Private: No
Submitted By: Elias Pschernig (elias)
Assigned to: Elias Pschernig (elias)
Summary: retained drawing

Initial Comment:
On devices like the iphone, reducing the number of times data are transferred to OpenGL can vastly improve performance. E.g. when 100 bitmaps are draw, right now this means 100 calls to glDrawArrays - each one sending 4 vertices as well as several OpenGL state changes.

The retained drawing would instead just collect the vertices then draw all bitmaps at once, with a single glDrawArrays call. It could be done by adding a pair of functions like al_begin/end_retained, and in between no actual rendering is done. For ease of implementation, we could require that no state changes (blending, clipping, transformation, target-bitmap) are issued while it is active.

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

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




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