Archived

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

Problem with tutorial: Framerate independant movement

This topic is 6025 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
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
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