Blitz3D window mode speedUP

Blitz3D Forums/Blitz3D Programming/Blitz3D window mode speedUP

Hi

while looking into placing gadgets on top of the blitz runtime window ive came up with a speed increase when using blitz3d in windowed mode.

do you see the speed increase?

.decls

.lib "user32.dll"
apiFindWindow%(lpClassName$,lpWindowName$):"FindWindowA"
apiInvalidateRect%(hWnd%,lpRect%,bErase%):"InvalidateRect"

example

;
RUNTIME_Window$ = "SpeedTest"
AppTitle RUNTIME_Window
runtimewindow = apiFindWindow("",RUNTIME_Window$)

;
Graphics3D 800,600,16,2
SetBuffer BackBuffer()

camera = CreateCamera()
PositionEntity camera,0,0,0

light = CreateLight()

cube = CreateCube()
PositionEntity cube,0,0,8

;
While Not KeyDown(1)

TurnEntity cube,1,1,1

UpdateWorld
RenderWorld



Text 100,100,"Press ESC to end."
apiInvalidateRect runtimewindow,0,True
; Flip
Wend
FreeEntity cube
FreeEntity light
FreeEntity camera
End

un rem out the flip and rem the InvalidateRect call to see the speed change, anyone now the implications of removing flip when using window mode.

kev