Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / the command sync!

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 10th Apr 2003 02:31
this command means refresh the screen right?
if manual sync is on and you dont type sync in your main loop your screen wont refresh right?
but is it just the screen that doesnt refresh or if you start creating files and doing stuff in the background that is still done without the use of sync right?

(you only need confirm the last statement/question!)
I have a word of advice...
..don't piss on an electric fence!
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th Apr 2003 03:12
"if manual sync is on and you dont type sync in your main loop your screen wont refresh right?"

Not so. Your video card can FORCE a sync whenever it feels like it. Typically when the video memory gets full and it needs to flush it out. To see what I mean write a program that randomly pastes an image on-screen over and over but don't put a sync in it. Eventually the screen will just "appear" because you've filled your video cards memory up.

"but is it just the screen that doesnt refresh or if you start creating files and doing stuff in the background that is still done without the use of sync right?"

Right. You don't need to "sync" when doing anything other than things that might change the display.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 10th Apr 2003 11:05
great [img][/img]

I have a word of advice...
..don't piss on an electric fence!
AndyUK
23
Years of Service
User Offline
Joined: 2nd Apr 2003
Location: United Kingdom
Posted: 10th Apr 2003 13:58 Edited at: 10th Apr 2003 13:59
rich, can i get the smooth refresh i get in exclusive mode without using exclusive mode? i get a couple of frames over the refresh rate of monitor in windowed mode which produces undesired results.. exclusive produces spot of smooth sync. only trouble is we can select resolutions from the code this way.

thanx

| P4 2.4(533) | 512DDR(333) | GF4Ti4200 64MB | WinXP Home Sp1 | Cup of CoffeE |

Login to post a reply

Server time is: 2026-07-11 02:34:47
Your offset time is: 2026-07-11 02:34:47