Delta Engine
»
Support
»
Rendering
»
How to show fps elegantly
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.
|
|
|
|
Joined: 8/23/2011(UTC) Posts: 245
Thanks: 6 times Was thanked: 12 time(s) in 11 post(s)
|
Originally Posted by: Santtu Syrjä  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 ^_^)
|
 1 user thanked elasto for this useful post.
|
|
|
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)?
|
|
|
|
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 |
|
 1 user thanked internetfreak for this useful post.
|
|
|
Joined: 8/23/2011(UTC) Posts: 245
Thanks: 6 times Was thanked: 12 time(s) in 11 post(s)
|
Originally Posted by: Santtu Syrjä  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
|
|
|
|
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...
|
|
|
|
Joined: 9/8/2011(UTC) Posts: 36
|
Incidentally, the project templates that come with the DE distro include this code already.
|
|
|
|
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.
|
|
|
|
Delta Engine
»
Support
»
Rendering
»
How to show fps elegantly
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.