I have a problem with my Allegro 5 code. It has three, sections, a section that checks for inputs, then a section that runs every 1/30th of a second with a timer, and a graphics drawing section.
The program begins, spawns all the objects on the screen (5 objects) as bitmaps, and then the timed section updates the bitmap's width values so they appear to 'spin'. In reality they are 'squishing'.
There is no issue with the code, it runs just fine for about 100 cycles, and then the bitmaps appear to noticeably slow down, and then get slower until the program has eaten all the memory and you have to hold the power button down on the computer. It takes a few hours to get that bad, however.
I am not loading the bitmaps before the display is created. I am telling it to use openGL and I have verified that it is drawing on the GPU. I would post the code but it is 800 lines (There are lots of other functions implemented in the game.)
I am using C and Code::Blocks.
Pulling my hair out, can't find anyone else having the same issue as me. Any help appreciated.
Here is a video of the program running: https://youtu.be/BgMRDJ9Vq8w
Alex