プレイ日記
Trabajon Leyenda_17
Hmmm... So the Vsync is something like "Charge your Megaman power" when pressing and holding for 60 ticks [1 second] if the vsync is 60?
0そうだね
プレイ済み
返信[1]
親投稿
Trabajon Leyenda_17
correct me or enhance details for me.
0そうだね
プレイ済み
返信[2]
親投稿
Trabajon Leyenda_17
Like... 60 ticks needed if I press and hold for 32 ticks then let go [human-adverages as in half a second. No one does half second frequently perfectly.] Nothing happens, but the tick stays and not reset. But if I press and hold for 30 more ticks, it will activate?
0そうだね
プレイ済み
返信[3]
親投稿
Trabajon Leyenda_17
Whoa. If I put "?" [Not parenthesis] in front of [Vsync 10] while looping, it will skip a line! More if theres more "?" !
0そうだね
プレイ済み
返信[4]
親投稿
*J.P.* DEV NEWPICY3
vsync sets the speed of your program, i would do something like if you hold the button then inc a value that would mean 1 second of holding like: IF BUTTON(0) AND #A THEN INC CHARGE,1 IF CHARGE>250 AND CHARGE<350 THEN (what you want it to do) IF CHARGE >351 THEN CHARGE=0 ENDIF Sonething like that i think
0そうだね
未プレイ
返信[5]
親投稿
Trabajon Leyenda_17
So the purpose is the higher vsync, the slower the program goes? Like The special effects in the Lunar Moon spaceship game? Like Braid? Like Stopwatch in Smash Bros?
0そうだね
プレイ済み
返信[6]
親投稿
*J.P.* DEV NEWPICY3
the program would go slower but in games like that it increases the frames making it smooth, this would just make it slower frames. though it would be cool to see a SB game use VSYNC to slow down time. also sorry for late reply (never got notified you comented)
0そうだね
未プレイ
返信[7]
親投稿
PChicken NerdChicken
VSYNC slows down your program, if it's not there it will just run at the fastest speed available and have inconsistencies between platforms.
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian1
VSYNC stands for Vertical Sync. Think of an old tube TV. The inside of the tube is coated with phosphors that glow momentarily when hit by an electron beam. In the back of the tube an electron beam is bent by large electro-magnets that move the beam left to right for each row of pixels and from top to bottom for each row. When it finishes a screen full, the beam is moved back to the top left.
0そうだね
プレイ済み
返信[9]
親投稿
Stewart segludian1
For computers, the information of what to draw to the screen is held in a block of memory called the screen buffer. If you write out to the screen while it is being filled you can get bad artifacts like tearing where the screen has parts of two different frames of the game. So you want to send over the next frame after the current frame finishes but before the next one starts drawing.
0そうだね
プレイ済み
返信[10]
親投稿
Stewart segludian1
When you call vsync you are telling the 3DS to wait for the current screen to finish drawing. In the tube tv example this is when the electron beam is moving back to the top left after finishing a frame. Sine the 3DS wants to refresh the screen 60 times per second this automatically limits you to a maximum of 60 frames per second. If you pass a number to vsync it waits that many screen refreshes.
0そうだね
プレイ済み
返信[11]
親投稿
Stewart segludian1
You should normally call vsync once per frame just to make sure everything you draw actually shows up on screen and doesn't disappear before you get a chance to see it. If you have a game that is slower than the screen refresh rate, then vsync is unecessary and may be slowing your game down. However most of the time you want it and don't need to pass in any parameters.
0そうだね
プレイ済み
返信[12]
親投稿
Trabajon Leyenda_17
uhhhhh.... Ironically, I understand the tv tube [The giant "bulb glass that shows cartoons."] but...I'm kind of lost some point I can't put finger on. XD ^^;
0そうだね
プレイ済み
返信[13]
親投稿
Trabajon Leyenda_17
So vsync pauses all the coding until the screen shows 100% completely? The higher vsync = slower the "buffering" yet high definition level?
0そうだね
プレイ済み
返信[14]
親投稿
Trabajon Leyenda_17
If thats the case, what codes is it to make it "Need to press and hold for 10 seconds for it to activate. Let go will just pause, and resume upon press." and "Press and hold 5 seconds for action. if not, start over."?
0そうだね
プレイ済み
返信[15]
親投稿
PChicken NerdChicken
make a variable that holds how long the button has been pressed, INCrease it by one IF the BUTTON is pressed down, and set it to 0 if it's not. So, to be frank, I'm not giving you the exact code, and I'm making you use some effort. But asking for help is good, just don't overuse it or people will get annoyed and not reply.
0そうだね
プレイ済み
返信[16]
親投稿
Trabajon Leyenda_17
I see where you are coming from, but where I'm from, it has given me some difficulties to understand and calibrate on certain words which annoys me since they might given certain words that, in my head, means something completely different. Ex. variables - Program or Algebra? DISPLAY - 'Show graphics or hide it specific' or 'option to: top or low screen'?
0そうだね
プレイ済み
返信[17]
親投稿
Stewart segludian1
What you want to do is keep track of how much time passes between frames and update the game world by that much. Think of it like a physics simulation if that helps.
1そうだね
プレイ済み
返信[18]
親投稿
Stewart segludian1
If you get the math right you can have a fast and slow machine animate the same thing in the same amount of time. The fast machine just gets more frames of animation shown and thus has smoother movement and more responsive gameplay.
1そうだね
プレイ済み
返信[19]
親投稿
Trabajon Leyenda_17
That honestly looks complex because I'm still researching what ? % $ # & ! () _ and more symbol really does...yet it could put me in little trouble. I'm thinking more of this pseudo-code where program is a little simple. VAR is meaning "defining a variable" or "Varies" or "Numerical" version of DIM"? I thank you for your time though.
0そうだね
プレイ済み