It is currently Thu Jul 19, 2018 8:53 am

All times are UTC - 7 hours

Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: thanks for all tokumaru
PostPosted: Thu Jan 26, 2006 12:50 pm 
:D thanks i will try...

 Post subject:
PostPosted: Thu Jan 26, 2006 7:13 pm 
User avatar

Joined: Tue Jan 17, 2006 10:39 am
Posts: 143
Location: North Carolina
The people here are very knowledgable and helpful. Here are a few pointers
that I've picked up since being "virtually" around them ...

1. will become one of your best friends. Use it.
2. On that page read,, and

Like I said they are very helpful but make sure you research your
information as much as you can. Don't expect for anyone to just flat out
give you the code for something. This is a learning environment.

Good luck and happy 6502!

 Post subject: Re: a question
PostPosted: Fri Jan 27, 2006 12:07 pm 
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10606
Location: Rio de Janeiro - Brazil
lord_nes wrote:
2. wait 2 vblanks;

i know that you make "wait vblanks" when you wanna change frames.. but if it is only a frame.. what is the reason to wait vblanks?? newbie question but i am on learning...

The VBlank wait is not to "change frames". The frames will go by whether you want or not. To simplify: all frames are composed of 2 parts, the VBlank, followed by the actual screen that is rendered. The NES screen is rendered to the TV 60 times a second, whether you change the contents of it or not. If you don't change anything, the same image is drawn to the TV over and over.

The VBlank waits exist because we can't change the screen contents while the NES is rendering them to the TV. And the only times the NES is not rendering, is at VBlank, or when you have rendering turned off manually.

So, whenever we want to draw anything to the screen, we must wait for the VBlank to start, then draw all we want, inside the VBlank time. Then, when VBlank ends, the NES will render the image to the TV.

You can also turn the rendering off, in that case, the screen will go blank (with color 0 filling the whole screen) as long as it remains off, but you can write to the screen as much as you want, the only limit is how long your player/user will wait with a blank screen. But you'll hardly take so long to do anything.

So, in the steps I posted, the first 2 waits are there bacause the PPU needs some time to warm up and be ready for use, and 2 frames proved to be enough time for that. Then, with the screen off, you do what you need and draw what you want to the PPU. When everything is ready, you wait for VBlank just to not turn rendering on in the middle of a frame, so you wait for the proper time to turn it on.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours

Who is online

Users browsing this forum: Gilbert and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group