slow runtime...

BlitzMax Forums/BlitzMax Beginners Area/slow runtime...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I tried your code and when the DrawPixMap command is not commented, the other image Mamma3 goes slower and slower each game loop.
Is that the problem you described?

In the beginning it goes quite fast, but the longer the program is running, the Mamma3 picture can be repositioned slower and slower each game loop.

I tried adding a FlushMem right after the DrawPixMap command and now it is not slowing down anymore after each game loop.
DrawPixMap natur, 0, 0
FlushMem

It is still slow, but now it doesn't slow down each game loop.

If you want it faster, why not load the "natur.jpg" as an Image, using LoadImage and draw it with DrawImage?
That way it is MUCH faster.