On 2011-11-27 at 17:40, Josiah Baldwin wrote: > I am writing an application in clutter that uses cogl for rendering a > texture passed in from a library. Currently, I am setting the texture and > rendering it with cogl through the do_paint function. This works great, and > it syncs to the screen refresh rate perfectly (Well done, clutter > developers), which is the desired function most of the time. However, this > application needs to have a user definable refresh rate (Again, they're > usually going to want 60), so I need to not have the vsync enabled, but I > can't find any way to disable it (Once it's disabled I can presumably use > set_default_frame_rate to change how often it will draw). Is there any way > to do this?
you can use the environment variable CLUTTER_VBLANK and set it to 'none'. be aware that the clutter_set_default_frame_rate() function has been deprecated in master and should not be used. programmatically changing the frame rate is Wrong™. you can still change it when starting your application, by using the CLUTTER_DEFAULT_FPS environment variable, but it's a setting, not an API. in Clutter 1.10 both settings are going to be available inside the $sysconfdir/clutter-1.0/settings.ini file. ciao, Emmanuele. -- Emmanuele Bassi, Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
