Author Topic: Just started using VC++ 2012 Express...  (Read 2326 times)

Offline Scorcher24

  • Jr. Member
  • **
  • Posts: 54
Just started using VC++ 2012 Express...
« on: October 22, 2012, 10:22:09 am »
.. and used <chrono> the first time (from the C++x11 standard). 
Finally no more need to wrap timing functions in xplatform games.
I didn't like QueryHighPerformanceCounter anyway.  :P Felt very clunky imho.
I know there are several libs out there like boost or SDL/SFML that provide wrappers, but I use OpenGL and use different libs to ensure XPlatform compability.
Using a pure C++ approach to the timing is really cool. 8)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Just started using VC++ 2012 Express...
« Reply #1 on: October 22, 2012, 10:25:24 am »
Just make sure you wrap it yourself in case you wind up needing to change your timing function or how you use that one ;)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Scorcher24

  • Jr. Member
  • **
  • Posts: 54
Re: Just started using VC++ 2012 Express...
« Reply #2 on: October 22, 2012, 10:35:58 am »
Just make sure you wrap it yourself in case you wind up needing to change your timing function or how you use that one ;)

I normally make heavy use of boost::signals2 and I always have a pure timing class which provides the global tick and all underlying functions use that event to move things etc. So yeah, it is in it's own neat class. That class can also manage multiple timers which can be installed and throw an event when they have exceeded their time.

<chrone> just takes away all those #ifdefs...

 

SMF spam blocked by CleanTalk