Jump to content

  • Log In with Google      Sign In   
  • Create Account

Need Help with Error


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 -BLACKSTAR-   Members   -  Reputation: 100

Like
0Likes
Like

Posted 14 February 2011 - 08:46 AM

Oh, man, this is annoying. Concerning chapter 3 PerformanceBenchmark solution, it seems like my ElapsedRealTime property doesn't exist at all in my MSDN Library (tried f12'ing the definition, and even on the solution file recorded on the cd, and doesn't come up with anything)

Here is the error:

"Error 1 'Microsoft.Xna.Framework.GameTime' does not contain a definition for 'ElapsedRealTime' and no extension method 'ElapsedRealTime' accepting a first argument of type 'Microsoft.Xna.Framework.GameTime' could be found (are you missing a using directive or an assembly reference?)"


I hope this doesn't sound too much like a noob-ish question, but can I get any help as to why this is happening? I can't compile without butchering what little code I did add

Sponsor:

#2 Dan Mayor   Crossbones+   -  Reputation: 1714

Like
0Likes
Like

Posted 14 February 2011 - 09:17 AM

I always use GameTime.ElapsedTime.TotalSeconds. But none the less I believe the answer is use the GameTime.ElapsedTime object.

Digivance Game Studios Founder:

Dan Mayor - Dan@Digivance.com
 www.Digivance.com


#3 -BLACKSTAR-   Members   -  Reputation: 100

Like
0Likes
Like

Posted 14 February 2011 - 09:45 AM

Couldn't use 'ElapsedTime' either. From the GameTime class definition in my library, it doesn't seem like it exists in there, unless I'm missing something (I'm still pretty new at all this....well not new, but inexperienced)

Anyway, I found this interesting link that may explain some of this...

http://blogs.msdn.co...studio-4-0.aspx

Or in very short quote form for those who hate reading:
"The DCR was approved, so ElapsedRealTime and TotalRealTime are gone from Game Studio 4.0."

It seems like Microsoft removed those two properties(objects?) from the VS 2010 library, I guess due to popular demand...

Am I the only one that noticed this or did everybody just quietly worked around it?

#4 Timotei   Members   -  Reputation: 100

Like
0Likes
Like

Posted 14 February 2011 - 10:55 AM

Well. Yes. Jeremy wrote in his Blog post(http://gamedevelopedia.com/post/RealTime-Revisited.aspx) about this. The link to the blog was specified in this week's post, here on forums.

#5 -BLACKSTAR-   Members   -  Reputation: 100

Like
0Likes
Like

Posted 14 February 2011 - 01:12 PM

Thank you, I missed it Posted Image......Posted Image




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS