Jump to content
Sign in to follow this  
Guest Patrick_Waugh

Getting FS frame rate

Recommended Posts

My last post had zero critique in it. It stated information, but didn't say one word about your physical code at all.As for sharing technique... that post was early AM after an all-nigher writing code. Sorry, I couldn't recall the names of the functions. I guess that deserves an insult tossed out.However, despite your insult... here they are:QueryPerformanceFrequencyQueryPerformanceCounter


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites
Guest Patrick_Waugh

Yes Ed, those are the same puppies I'm experiementing with too. Thanks for sharing in case they were not. Those are what I was refering to as the high-res timers, which is how my game programing books refer to them.I was trying to avoid using them, but it seems that they really are what the doctor ordered.Wasn't trying to insult you, just saying if you have some better solution, feel free to post it. Your post certainly didn't include a dig, it is just that in this case (vs. others where I am looking for that keen experienced eye) I'm less interested in an analysis of why my code won't work in your opinion, and more interested in other possible solutions that people wish to share. Of course some things people want to keep to themselves, which is understandable after they spent many many hours figuring it out.The one 20ms timer works great for the sound engine I built, and I now poll DirectInput less often in a 200ms timer, although it worked fine at 18hz in a gauge callback too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...