[Solved] Flip Confusion

Blitz3D Forums/Blitz3D Programming/[Solved] Flip Confusion

RustyKristi(Posted 2016) [#1]
Help please, I'm seeing different output in window and fullscreen mode.

I have a menu image that will clear up once I go to main game loop, I don't see my menu when in windowed mode, but if I switch to fullscreen and do some wait timer stuff. it also shows my menu.

Main Loop
Menu Loop

DrawMenu

Game Loop

StartGameDelayLoop
WaitTimer
Flip
EndDelayLoop

Flip
End Game Loop
End Menu Loop
End Main Loop


RemiD(Posted 2016) [#2]
Try to add setbuffer(backbuffer()) before drawing anything.

Function Main()
Repeat
;logic
;go to the backbuffer
;draw 3d
;draw 2d
;flip to the frontbuffer
Until( ProgamState = false )
end function


RustyKristi(Posted 2016) [#3]
Thanks RemiD, it seems I misplaced my waittimer loop but that buffer thing also helped me debug it, now fixed!