Hi All,

I am working on the eclair framework. I have a question about refresh
rate set in framebuffer.cpp
in mapFrameBufferLocked, I hard coded the refresh rate to 60*1000,
recently I did a test to remove the code,
I find it is 1Hz calculated from the formula and then the fps will be
about 0.00.
According to my test , after that change, it will improve some
performance in out platform, anybody know what is the refreshRate used
for?
Where is the exact code to use this value?

    int refreshRate = 1000000000000000LLU /
    (
            uint64_t( info.upper_margin + info.lower_margin +
info.yres )
            * ( info.left_margin  + info.right_margin + info.xres )
            * info.pixclock
    );

    LOGW("refresh rate = %.2f Hz\n",refreshRate);
    if (refreshRate == 0) {
        // bleagh, bad info from the driver
        refreshRate = 60*1000;  // 60 Hz
    }
    //refreshRate = 60*1000;  // 60 Hz --> hard coded.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to