Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Moe

Problem with tutorial: Framerate independant movement

This topic is 6219 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was reading through the new tutorial by Ben Dilts about frame rate independant movement. I came across this line of code:
  
QueryPerformanceCounter(¤tticks);
  
Somethings definitly wrong there. what should be between the brackets?

Share this post


Link to post
Share on other sites
Advertisement
The correct line must be:

QueryPerformanceCounter(/*amperstand*/currentticks);

I write /*amperstand*/ because somthing weird happend if I put
the amperstand character (Shift + 7) I got exactly the following line:

QueryPerformanceCounter(¤tticks); // WEIRD!!


Hope it help you!

Edited by - ogracian on June 12, 2001 11:01:24 PM

Share this post


Link to post
Share on other sites
Thanks! I figured it was something like that but I wasn''t quite sure.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
To prevent the html rendering engine to eat up ampersands you should write them as: & and they show up as: &

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!