Here is the example :
Global bufPic, izbPic, br
izbPic = CreateImage (2000, 150)
Setbuffer ImageBuffer (izbPic)
br=0
For t=1 to 10
nam$ = "Pic"+t+"_100.jpg"
bufPic = LoadImage (nam$)
ResizeImage bufPic,200,150
DrawBlockRect bufPic,br,0,0,0,200,150
br = br + 200
Next
Setbuffer backbuffer()
DrawBlock izbPic,0,0
flip
WaitKey()
FreeImage bufPic : FreeImage izbPic
I tried to comment
ResizeImage bufPic,200,150
DrawBlockRect bufPic,br,0,0,0,200,150
to see if that's the problem and the speed is the same, so it should be loading.
From blits 1 sec, from exe 8 seconds.
Som I still don't understand. If I do something wrong it should run slower always, not only like .exe!! Or.. ?
Global bufPic, izbPic, br
izbPic = CreateImage (2000, 150)
Setbuffer ImageBuffer (izbPic)
br=0
For t=1 to 10
nam$ = "Pic"+t+"_100.jpg"
bufPic = LoadImage (nam$)
ResizeImage bufPic,200,150
DrawBlockRect bufPic,br,0,0,0,200,150
br = br + 200
Next
Setbuffer backbuffer()
DrawBlock izbPic,0,0
flip
WaitKey()
FreeImage bufPic : FreeImage izbPic
I tried to comment
ResizeImage bufPic,200,150
DrawBlockRect bufPic,br,0,0,0,200,150
to see if that's the problem and the speed is the same, so it should be loading.
From blits 1 sec, from exe 8 seconds.
Som I still don't understand. If I do something wrong it should run slower always, not only like .exe!! Or.. ?