Guide.IsTrialMode on Windows Phone

Guide.IsTrialMode on Windows Phone

  • Comments 8

Kluch posts important info about the performance of Guide.IsTrialMode on Windows Phone:

  • Can take ~60 milliseconds to query while in trial mode
  • So don't call it every frame!
  • This delay only occurs when downloaded from Marketplace, not when testing with SimulateTrialMode
  • Consider checking it once on startup, then again whenever the Game.Activated event fires
  • Maybe you should do this caching for us. ;) Would be a great help for people who don´t know this!

  • > Maybe you should do this caching for us

    This is something we'd love to improve in the future, but for now, afraid it is what it is.

  • Alternately, it would be nice if SimulateTrialMode induced a Thread.Sleep(60) to accurately simulate trial mode.

  • Out of curiosity, why does it take so long?

  • Looks like somebody broke the golden rule that property accessors should always be fast ;)

  • Will there be a way to test this in the real world scenario?  For example, on Xbox you must use SimulateTrialMode when deploying from the IDE, but you can test the real world trial mode scenario by exiting Game Studio Connect and starting your game via the dash, and choosing "Trial Mode".  I don't know the WP7 tools that well but such a thing would seem necessary.  Anyway thanks for the heads-up.

  • There is a performance hit from calling Guide.IsTrialMode with SimulateTrialMode on the device even when the app was not downloaded from Marketplace, but its up to several ms instead of 60.  We found this a few months back and started caching the trial mode value at that point.

  • As I mentioned here Guide.IsTrialMode is always true on game start (and fixed at a later time), so the recommendation to checking it on startup is wrong UNLESS Game.Activated fires when it's set to the proper value.  So... is that what happens?

Page 1 of 1 (8 items)
Leave a Comment
  • Please add 5 and 7 and type the answer here:
  • Post