Jump to content
  • Advertisement

Archived

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

UStink2Me

Expensive Operations

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

While it is possible to "count" the number of cycles a piece of code uses, it is both diffcult and inaccurate. Pipelining, cache and processor differences may make you measurements on one PC wildly inaccurate on another.

My best suggestion is to use a good profiler, and run it on as many platforms as you can get your hands on.

If you really want to get dirty, Intel has a tool the gets into the nitty gritty (VTune) + gives away processor docs for free (2-3 CDs full of it). That should keep you occupied for a while, or at least convince you to take another approach

/Niels

Share this post


Link to post
Share on other sites
Advertisement
How do you determine how expensive an operation is? Can someone list their expense (including integer and floating point). Also, what chips have dedicated floating point processors onboard? Does this change you answer, above? thanks

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!