DrawPixmap slows down?

BlitzMax Forums/BlitzMax Programming/DrawPixmap slows down?

ImaginaryHuman(Posted 2004) [#1]
I'm having a weird thing here where a normal drawing loop runs fine at a fairly consistent framerate, but as soon as I change from using Images to using Pixmaps, apart from it being a lot slower, the framerate continually drops and drop and then there starts to be disk access. Is the OpenGL somehow thinking it has to cache all of the Pixmaps as Images and fills up the videoram, which when full starts to cache to disk or something weird like that? Surely that's not right?


ImaginaryHuman(Posted 2004) [#2]
I've been looking in the GLMax2D module and others to find out why DrawPixmap is so slow...

It seems that it unconditionally Y-flips every pixmap, creating a new pixmap, which reserves extra memory and copies all the pixmap data to it with y flipped, for EVERY call you make you DrawPixmap. I also don't see an explicit sign of the flipped pixmap being freed after rendering, which makes me wonder if that eats up memory really quickly and results in virtual memory usage kicking in or something?