GAMEhud Supports Time Submission For Game Events

written by Creston


It has been a busy week, so I have not had time to update Spero Nova.  However, I did want to give you an update on some enhancements made to the GAMEhud API for tracking and monitoring your game.  

The initial version of the API relied on the GAMEhud server's clock to record the dates and times of all events.  This is convenient because you avoid the issue of accepting a date and time from a client whose clock may be off and could be in any one of the time zones.  However, if you sent us a batch of game events, they would all receive the same time.  Not ideal.  So we came up with a new way.

Now, when you submit a game event, you send us a submitted_at DateTime which gives us the current date and time of the client's clock.  In addition, each event that you send us in the JSON array has its own recorded_at DateTime.  As we log each event, we get a delta between the recorded_at and submitted_at DateTime.  Then, we apply this delta to the DateTime our server received the game event to get an accurate recorded_at DateTime for the event in UTC time.  To get a few more details, check out the updated Game Event API.

Lastly, I have updated our Unity 3D API wrapper to support this new feature as well.  You can download the wrapper and the updated Unity demo on our Unity API Wrapper page.

As always, we welcome all comments and suggestions.  If you liked this article, please share it with others.


blog comments powered by Disqus