If I call in main each frame al_set_target_bitmap(al_get_backbuffer(Display));
Will this slow down my program a lot ? I would need to pass Display as parameter of the method that I'm using since its part of a separate class. If so ill do it if necessary.
I'm having some weird problem sometimes when I use put pixel nothing shows up when I use draw line and do x , y, x +1 , y +1 for the starting and end point it draws a dot.
Also I have 2 bitmaps 1 'locked' READONLY for calculations etc. Second for drawing which I am trying to update. Yet when I set 'locked' one as target it works as well even if all im calling in the main loop is al_draw_bitmap(image);
What I'm looking for is the fastest possible way to edit pixels in the bitmap as I'm trying to update a lot of them.