- Online Community Forums » Programming Questions » Sub bitmaps in multiple threads

This thread is locked; no one can reply to it. rss feed Print
Sub bitmaps in multiple threads
Member #16,783
December 2017


How should I use sub bitmaps created with al_create_sub_bitmap() function to draw in parent bitmap from threads?

I use allegro 5.1 and C++ 11

Member #358
May 2000

Lock the thread and set the target bitmap. (Make sure only one thread at a time ever has the same target bitmap!)

In general though I would advice against doing it as it will be quite slow.

"Either help out or stop whining" - Evert

Go to: