I actually set it a few times before hand:
set display mode 640,520,bit_depth0,1 `bit_depth0,1
res() `function for choosing res.. parts taken from other places:
check0 as integer
check0 = check display mode (x_res,y_res,bit_depth0)
if check0=0
if bit_depth0=16 then bit_depth0=32
if bit_depth0=32 then bit_depth0=16
ENDIF
check1 as integer
check1 = check display mode (x_res,y_res,bit_depth0,1,1,0)
if check1=1 then antialiasing=1 else antialiasing=0
set display mode x_res,y_res,bit_depth0,1,antialiasing,0 `bit_depth,1
then there is a bunch of regular code and at the end of the following block, it crashes on sync:
color backdrop rgb(0,0,0)
load image "horror\Files\Banners\white_screen5.bmp",15,1
play animation to image 1,15,0,0,1920,1080
texture object 50,15
repeat
animationFinished = 1-animation playing(1)
if spacekey()
animationFinished=1
ENDIF
XROTATE CAMERA WRAPVALUE(CAMERA ANGLE X()+(MOUSEMOVEY()*camSensitivity#))
YROTATE CAMERA WRAPVALUE(CAMERA ANGLE Y()+(MOUSEMOVEX()*camSensitivity#))
if wrapvalue(camera angle x())<=275 && wrapvalue(camera angle x())>180
xrotate camera 275
ENDIF
if wrapvalue(camera angle x())<180 && wrapvalue(camera angle x())>85
xrotate camera 85
ENDIF
faded=rnd(100)
if afaded<100 then afaded=afaded+40
if afaded=80 then fade object 75, 55
`if faded<7
`fade object 75,50
`afaded=0
`endif
if afaded=80 then fade object 76, 55
if faded<7
fade object 76,52
afaded=0
endif
if afaded=80 then fade object 77, 55
if faded<7
fade object 77,52
afaded=0
endif
if afaded=80 then fade object 78, 55
if faded<7
fade object 78,52
afaded=0
endif
update physics
sync `crashes here.. also screen is black if taken out since it does not auto sync (sync is on and rate 0)
until animationFinished
EDIT: Reminder, it works fine on my laptop. When I get back home on my desktop I will try co-installing Dx9.0C
EDIT2: Important to note, I don't turn off auto sync until AFTER the res changes!