Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline saviilsy  
#1 Posted : Monday, March 19, 2012 10:36:07 AM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Like the topic says, which is the best way to show/monitor fps?

I'd need this to test the scenegraph performance and spikes caused by the multithreading.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline elasto  
#2 Posted : Monday, March 19, 2012 11:40:50 AM(UTC)
elasto

Joined: 8/23/2011(UTC)
Posts: 245

Thanks: 6 times
Was thanked: 12 time(s) in 11 post(s)
Originally Posted by: Santtu Syrjä Go to Quoted Post
Like the topic says, which is the best way to show/monitor fps?

I'd need this to test the scenegraph performance and spikes caused by the multithreading.

Are you looking for something more sophisticated than Font.DrawTopLeftInformation(Time.FPS)?

(Cos if so I can't help you ^_^)
thanks 1 user thanked elasto for this useful post.
saviilsy on 3/19/2012(UTC)
Offline saviilsy  
#3 Posted : Monday, March 19, 2012 12:44:02 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
No PG, that's good enough for me thanks :)

By the way, is there some systemfont or similar which works with every DE build (tests in particular, so I don't have to use content manager to bring a font to test cases)?
Offline internetfreak  
#4 Posted : Monday, March 19, 2012 1:08:21 PM(UTC)
internetfreak

Joined: 12/19/2011(UTC)
Posts: 529

Thanks: 10 times
Was thanked: 16 time(s) in 15 post(s)
For the default fallback Fon, use Font.Defaul :D
Hope, this helps
Mein Blog: www.internetfreak.net

- Inoffizieller DeltaEngine-Supporter und Tutorialschreiber -
thanks 1 user thanked internetfreak for this useful post.
saviilsy on 3/19/2012(UTC)
Offline elasto  
#5 Posted : Monday, March 19, 2012 1:10:33 PM(UTC)
elasto

Joined: 8/23/2011(UTC)
Posts: 245

Thanks: 6 times
Was thanked: 12 time(s) in 11 post(s)
Originally Posted by: Santtu Syrjä Go to Quoted Post
No PG, that's good enough for me thanks :)

By the way, is there some systemfont or similar which works with every DE build (tests in particular, so I don't have to use content manager to bring a font to test cases)?


Yes, Font.DrawTopLeftInformation is a static method - don't need a Font instance to use it :)

(Edit: Or, yes, use the static Font.Default if you want to do other stuff with it :))

Edited by user Monday, March 19, 2012 1:12:15 PM(UTC)  | Reason: Not specified

Offline saviilsy  
#6 Posted : Monday, March 19, 2012 1:19:14 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Ok, thanks both of You :) I'll add fps to tests now...
Offline AaronStackpole  
#7 Posted : Monday, March 19, 2012 7:03:52 PM(UTC)
AaronStackpole

Joined: 9/8/2011(UTC)
Posts: 36

Incidentally, the project templates that come with the DE distro include this code already.
Offline saviilsy  
#8 Posted : Monday, March 19, 2012 7:38:15 PM(UTC)
saviilsy

Joined: 8/24/2011(UTC)
Posts: 95

Thanks: 6 times
Was thanked: 2 time(s) in 2 post(s)
Programming the engine and not using project templates so I wouldn't know.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.067 seconds.