Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming

Post new topic   Reply to topic
Flickering in BITBLT
View previous topic :: View next topic  
Author Message
Archonius
Newbie


Joined: 22 Aug 2005
Posts: 7

PostPosted: Aug 24th, 2005 06:33 PM    Post subject: Flickering in BITBLT Reply with quote

Hey im using BITBLT but its flickering a little more than id hope. Im refreshing my image every 50 milli seconds to ensure smoother movement with my star ship yet it flickers abit.

Now ive heard of double buffering and decided originally not to use it to make things simpler. But im heading that way (but not fully understanding it). I understand it to be making all your changes where they cant be seen (im doing it on another undisplayed form but I've read about it just being done in memory) and then blitting the entire unseen picture to another form where they can be seen. But this seems just as bad. Does anyone know any methods of less flicker. Or can someone explain double buffering a little better. (bear in mind im new to bitblt and dont want to over complicate things) patronisation isnt a problem when talking about bitblt and double buffering.

Thanks.

Rob
Back to top
View user's profile Send private message Send e-mail
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Aug 24th, 2005 06:41 PM    Post subject: Reply with quote

Double buffering is what they do to aspirin so you don't get sick, right?

Seriously, 50 milliseconds gives you a frame rate of 20 FPS (frames per second). If you lower the interval to 25 it gives you 40 FPS. Is that possible?
Back to top
View user's profile Send private message
Archonius
Newbie


Joined: 22 Aug 2005
Posts: 7

PostPosted: Aug 24th, 2005 06:46 PM    Post subject: Reply with quote

Surely increasing the fps im increasing the flickering. I'm not sure how your responce can help my problem.
Back to top
View user's profile Send private message Send e-mail
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Aug 24th, 2005 07:07 PM    Post subject: Reply with quote

I've got that backwards then? Sorry. I thought the flickering might be from a low FPS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Direct X / Game Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic