Slow code?

Blitz3D Forums/Blitz3D Beginners Area/Slow code?

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.

Ive been working on my project and came accross a problem.

The code in the if/then statement opperates in 2 millisecs, however if i activate the flip statement it takes 20 seconds to complete.

It seems an aweful lot of processor time for just the flip statement.

Anyone else come accross this, or am I missing something?

Repeat
; Cls
; DrawImage gfxTemp, 0, 0
; DrawImage gfxTemp2, 717, 707
; DrawImage gfxP2pointer, plTwoTimeX, plTwoTimeY
; DisplayTimes()
; Flip

If vocab\number < lastWord
vocab = After vocab
Else
test2 = MilliSecs()
test3# = Float(test2-test1)/1000
Notify test3# : End
EndIf

Forever