Hmm, this leaves me with an interesting predicament then. You see, what I am doing is writing a front end for multiple system emulators. These include mostly ntsc systems, but also some PAL systems (Which use a refresh rate of 50 fps instead of the 60 most people will get in the US and other ntsc areas, the same problem would occur when emulating an ntsc system in a PAL area). So, I guess, is there any way one can asynchronously edit the cogl texture used in the drawing of an actor, but still have it be drawn at the frame rate as decided by the user's monitor?
On Mon, Nov 28, 2011 at 5:08 AM, Emmanuele Bassi <[email protected]>wrote: > 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 >
_______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
