|Re: [AD] Strange memory bug:|
[ Thread Index |
| More lists.liballeg.org/allegro-developers Archives
At 09:19 PM 07-01-04, you wrote:
Using a windowed DirectX driver, using mingw, I'm getting a fairly strange
problem. Memory usage, as seen in the task manager, keeps jumping up
until it chokes the system (watching it, it jumps when the program is
creating then destroying large bitmaps), but if the window is minimised
then restored, it disappears, and goes back to the minimal, expected
Much appreciated if anyone knows anything about this.
With a visible window, everything has to be drawn to the graphics adapter
RAM which is a slow process. This would also cause delays because the
destroy bitmap code has to wait for the graphics adapter RAM to be written to.
When the window is minimised, everything is drawn to a windows/directx
memory buffer, not the graphics adapter RAM. When the user maximises the
window and makes it visible, the last update of the window can be seen.
The human brain is the ultimate case of spaghetti programming.