[Libreoffice-bugs] [Bug 137468] Severe performance degradation on a macOS with a 5K display

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Oct 19 07:33:10 UTC 2020


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

--- Comment #12 from Leo Wang <ilford at gmail.com> ---
(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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201019/a6564310/attachment.htm>


More information about the Libreoffice-bugs mailing list