malcolmstill / ulubis

A Wayland compositor written in Common Lisp
BSD 3-Clause "New" or "Revised" License
239 stars 19 forks source link

FPS dropping as ulubis runs #55

Open malcolmstill opened 6 years ago

malcolmstill commented 6 years ago

I noticed that as weston-simple-egl runs our frame rate slowly drops from just below 60 FPS towards 30 FPS.

screenshot

I'm not sure whether this is happening because I'm running weston-simple-egl or would happen slowly regardless.

Theories as to why this might be:

malcolmstill commented 6 years ago

Okay, so I've looked into this a bit more. I'd wondered if:

What this suggests is the performance leak is in my DRM/KMS/GBM code. I wonder if I time different parts of the page flip code whether I'd see one call taking longer and longer. Or maybe the time between receiving page flip events might just increase.

malcolmstill commented 6 years ago

I'd also wondered whether my Mac Mini was just overheating and was just being clocked down. However, if I stop weston-simple-egl after a while and allow the machine to cool again, I do not recover the FPS. This makes me think it's not a temperature issue.

malcolmstill commented 5 years ago

I don't know if I actually did, but I thought I'd written a small program utilising DRM/KMS to check whether there was slow down in that and from what I recall there wasn't any but my memory is hazy.

Todo: redo this and check

malcolmstill commented 5 years ago

I want to fix this before adding anything else. If I can get a baseline of a compositor running at 60 FPS then I know I can add bells and whistles after that.