my code looks like this
sync on
set display mode goes here
do
some code here
if spacekey()=1 then movecar()
sync
loop
function movecar()
for i=1 to number
some code here
sync
next i
endfunction
as you can see, there are 2 syncs in the code. if the numbers after set display mode differs from the desktop resolution and the function is called, everything is slowed down as hell. however when going into the function it is synced only once a loop. in the main loop everything runs fine and again theres only one sync per loop. so why the slowdown in the function?
in fullscreen exclusive mode everything runs fine, but i get around 40 fps while in windowed-fullscreen it's around 150 on my old p3 500 with tnt2 graphics. in fact i want to use the windowed-fullscreen.
i hope you understand my problem