On Thu, 2009-04-23 at 13:33 +0530, Rajith Kalluraya wrote:
> Hi,
>
> Is is possible to print the fps of test-actors?
>
> Only approach i can see is connecting to "paint" signal of stage and
> placing a print in the callback.
>
> Is there a better way of recording the fps?
~/git/clutter/clutter/tests/interactive$
./test-actors --help-clutter
Running ./test-interactive test-actors --help-clutter
NOTE: For debugging purposes, you can run this single test as follows:
$ libtool --mode=execute \
gdb --eval-command="b test_actors_main" \
--args ./test-interactive test-actors
Usage:
test-actors [OPTION...]
Clutter Options
--clutter-show-fps Show frames per second
--clutter-default-fps=FPS Default frame rate
--g-fatal-warnings Make all warnings fatal
--clutter-text-direction=DIRECTION Direction for the text
--clutter-disable-mipmapped-text Disable mipmapping on text
--clutter-use-fuzzy-picking Use 'fuzzy' picking
--clutter-debug=FLAGS Clutter debugging flags to set
--clutter-no-debug=FLAGS Clutter debugging flags to unset
--vblank=METHOD VBlank method to be used (none, dri or
glx)
--display=DISPLAY X display to use
--screen=SCREEN X screen to use
--synch Make X calls synchronous
~/git/clutter/clutter/tests/interactive$
./test-actors --clutter-show-fps
Running ./test-interactive test-actors --clutter-show-fps
NOTE: For debugging purposes, you can run this single test as follows:
$ libtool --mode=execute \
gdb --eval-command="b test_actors_main" \
--args ./test-interactive test-actors
*** FPS: 58 ***
*** FPS: 60 ***
*** FPS: 60 ***
*** FPS: 60 ***
with sync-to-vblank enabled (the default) you should not expect a
different frames per second value than the refresh rate of your display.
ciao,
Emmanuele.
--
Emmanuele Bassi, Senior Engineer | [email protected]
Intel Open Source Technology Center | http://oss.intel.com
--
To unsubscribe send a mail to [email protected]