https://bugs.documentfoundation.org/show_bug.cgi?id=137468

--- Comment #12 from Leo Wang <[email protected]> ---
(In reply to Tor Lillqvist from comment #11)
> Leo, will the iStat Menus in the App Store display the frame rate? Or just
> the one outside the App Store? I am a bit careful in installing random
> "useful" binaries.

I use iStat Menus just for convenience. You don't need install it.

Get the fps number by the following code.

--- [1.c] ---
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>

typedef int CGSConnectionID;

extern CGSConnectionID _CGSDefaultConnection(void);
extern int32_t CGSGetPerformanceData(CGSConnectionID cid, float *outFPS, float
*unk, float *unk2, float *unk3);

int main(int argc, char **argv) {
        CGSConnectionID cid = _CGSDefaultConnection();
        for (;;)
        {
                float fps, f1, f2, f3;
                CGSGetPerformanceData(cid, &fps, &f1, &f2, &f3);
                printf("fps=%f\n", fps);
                sleep(1);
        }
}
---

Compile it with:

cc -o 1 1.c -framework CoreGraphics

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to