プレイ日記
MSWS coolestkid123
Pls help! How is VSYNC Different from WAIT?
3そうだね
プレイ済み
返信[1]
親投稿
Perska Perska02
WAIT waits extacly the given amount of frames, while VSYNC has more to it. It waits for blank frames. Let's say that this code takes a half a frame (1/120th of a second) WHILE 1 DO_SOMETHING '<-- in this example, that takes a half a frame. WAIT 1 WEND The code would run at 45FPS. However, replace WAIT with VSYNC, and since a vertical frame swap is near, we just wait 'till that happens.
1そうだね
プレイ済み
返信[2]
親投稿
Perska Perska02
Something like that. You'd get a better explanation from someone else, but whatever. (you can look up how VSYNC works from the internetz, too.)
1そうだね
プレイ済み
返信[3]
親投稿
C. Norris 06495a
My understanding is wait literally pauses the program and nothing is proceed. But with vsynic button inputs are received but not acted upon because the screen needs to catch up.
2そうだね
プレイ済み
返信[4]
親投稿
mystman12 mystman12
WAIT will always wait the amount of time specified, while VSYNC waits for the amount of frames specified. (I think) Basically, if your program takes most of a frame for each loop to be processed, VSYNC 1 will only wait the remaining amount of time for that frame before continuing. This ensures a completely stable game speed, unless your program takes *longer* than one frame to process per loop.
1そうだね
プレイ済み
返信[5]
親投稿
12Me21 12Me21
WAIT just pauses the program for that many frames VSYNC counts from the previous VSYNC
2そうだね
プレイ済み