GithubHelp home page GithubHelp logo

Comments (6)

vanfanel avatar vanfanel commented on September 25, 2024 1

I'll be there testing it once it's added, for sure.

from labwc.

johanmalm avatar johanmalm commented on September 25, 2024

We just use wlroots scene graph API out of the box so to speak and have not (yet) implemented max_render_time.
So we just render early in the 16ms period.

from labwc.

vanfanel avatar vanfanel commented on September 25, 2024

Ah! That explain the lack of framerate halving caused by the late rendering in other compositors when 2 buffers swapchain is used... Thanks! :)

from labwc.

johanmalm avatar johanmalm commented on September 25, 2024

Maybe we ought to add max_render_time. I looked at how sway did it and shouldn't be too much effort. Probably best done in the merge window after a release in case we get something wrong with it.

from labwc.

Consolatis avatar Consolatis commented on September 25, 2024

Honestly I am not sure if that is worth it. AFAIR it plays tricks by assuming the render time based on the last frames and then delays rendering up until that point. However if we now take longer to render we skip a complete frame which does sound even worse than rendering too early in the timeframe. Combine that with completely unforeseeable CPU / GPU or bus usage and latency based on whatever the user is doing. IMHO labwc should work decent in regards to performance but this might be a bit too much and is even a possible cause of skipping frames that wasn't there before. Feel free to correct me if I got the idea wrong though.

from labwc.

vanfanel avatar vanfanel commented on September 25, 2024

Honestly I am not sure if that is worth it. AFAIR it plays tricks by assuming the render time based on the last frames and then delays rendering up until that point. However if we now take longer to render we skip a complete frame which does sound even worse than rendering too early in the timeframe. Combine that with completely unforeseeable CPU / GPU or bus usage and latency based on whatever the user is doing. IMHO labwc should work decent in regards to performance but this might be a bit too much and is even a possible cause of skipping frames that wasn't there before. Feel free to correct me if I got the idea wrong though.

I have to agree with that. Every program I've seen where previous frame times where used to infere the next had framerate problems / hiccups.

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.