SFML community forums

Help => Window => Topic started by: SuperV1234 on March 05, 2012, 06:50:08 pm

Title: GetFrameTime doesn't exist anymore?
Post by: SuperV1234 on March 05, 2012, 06:50:08 pm
I can't seem to find any alternative to GetFrameTime() in the new SFML.NET bindings. What am I supposed to use instead of GetFrameTime()?
Title: GetFrameTime doesn't exist anymore?
Post by: texus on March 05, 2012, 07:29:28 pm
http://www.sfml-dev.org/forum/viewtopic.php?t=6831
Title: GetFrameTime doesn't exist anymore?
Post by: Laurent on March 05, 2012, 07:33:18 pm
Quote
I can't seem to find any alternative to GetFrameTime() in the new SFML.NET bindings. What am I supposed to use instead of GetFrameTime()?

Look at the samples, they are a good source of information when something changes.
Title: Re: GetFrameTime doesn't exist anymore?
Post by: TobiasW on July 07, 2012, 12:01:23 am
The linked topic points to the "Clock" class which doesn't seem to be present in the SFML .Net version 2.0 RC. (Nor is "Time" which is mentioned in the tutorials.)
Title: Re: GetFrameTime doesn't exist anymore?
Post by: Laurent on July 07, 2012, 09:19:58 am
Yep, that's why you should focus on my answer, which is always the correct one of course ;D
Title: Re: GetFrameTime doesn't exist anymore?
Post by: TobiasW on July 07, 2012, 01:08:49 pm
Okay, I'm stumped. Where can I find the example source code for the .NET RC?
It's not in the download on the download page (http://www.sfml-dev.org/download.php#2.0-rc), and I cannot find them in the repository either.

(Furthermore, though that might not be relevant: The .chm docs for the C++ version include "Time" as an index, while the .NET version doesn't.)
Title: Re: GetFrameTime doesn't exist anymore?
Post by: eXpl0it3r on July 07, 2012, 01:34:20 pm
Yes that's because the downloaded package contains only the .exe files which imho isn't very usefull, but you can find the source on GitHub  (https://github.com/SFML/SFML.Net)and here  (https://github.com/SFML/SFML.Net/blob/master/examples/shader/Shader.cs#L287)is an example for the use of time. It seems SFML.Net is not implementing the system library but .Net has such a big 'standard' library that you won't need additional stuff.
Title: Re: GetFrameTime doesn't exist anymore?
Post by: TobiasW on July 07, 2012, 01:58:25 pm
Oh, I didn't know there's a seperate .Net repository. Where on the homepage can I find that link?

Anyway, thanks! I've looked up what the System library implements and indeed everything in there I can do with .Net alone. Thanks for your help guys!